<?php
class AppFakultasToSia extends Database {

	protected $mSqlFile= 'module/fakultas/business/appfakultastosia.sql.php';
	
	function __construct($connectionNumber=1) {
		parent::__construct($connectionNumber);
		
      }
//------------------------do---------------------------------------------------------------   
   function DoAddFakultas($kodeFak,$namaResmiFak,$namaSingkatFak){

      $result=$this->Execute($this->mSqlQueries['do_add_fakultas'],array($kodeFak,$namaResmiFak,$namaSingkatFak));   
      //print('From SIA<br>'.$this->GetLastError().'<br><br>');

      return $result;
   }
   
   function DoUpdateFakultas($namaResmiFak,$namaSingkatFak,$dataId){
   

      $result=$this->Execute($this->mSqlQueries['do_update_fakultas'],array($namaResmiFak, $namaSingkatFak,$dataId));
//print($this->GetLastError());
      return $result;
   }
   
   function DoDeleteFakultasById($kodeFak){

      $result=$this->Execute($this->mSqlQueries['do_delete_fakultas_by_id'],array($kodeFak));
//print($this->GetLastError());
      return $result;
   }
   
   function DoDeleteFakultasByArrayId($arrKodeFak){
      $kodeFak = implode("', '", $arrKodeFak);   

      $result=$this->Execute($this->mSqlQueries['do_delete_fakultas_by_array_id'],array($kodeFak));
    //  print($this->GetLastError());
      return $result;
   }
}
?>