<?php
class AppFakultasToUm extends Database {

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