<?php
class AppFakultasToFinansi extends Database {

	protected $mSqlFile= 'module/fakultas/business/appfakultastofinansi.sql.php';
	
	function __construct($connectionNumber=3) {
		parent::__construct($connectionNumber);
		
      }
//------------------------do---------------------------------------------------------------   
   function DoAddFakultas($idFak,$namaSingkatFak,$namaResmiFak){
      $result=$this->Execute($this->mSqlQueries['do_add_fakultas'],array($idFak,$namaSingkatFak,$namaResmiFak));   
      //print('From Finansi<br>'.$this->GetLastError().'<br><br>');exit;
      return $result;
   }
   
   function DoUpdateFakultas($namaSingkatFak,$namaResmiFak,$dataId){ 
     
      $result=$this->Execute($this->mSqlQueries['do_update_fakultas'],array($namaSingkatFak,$namaResmiFak,$dataId));
      //print('From Finansi<br>'.$this->GetLastError().'<br><br>');
      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('aaa<br>'.$this->GetLastError());
      return $result;
   }
}
?>