<?php
class AppPendidikanToUm extends Database{
   protected $mSqlFile= 'module/pendidikan/business/apppendidikantoum.sql.php';
   function __construct($connectionNumber=4) {
		parent::__construct($connectionNumber);
		
	}
	
   function DoAddPendidikan($idPendidikan,$namaPendidikan){
      $result = $this->Execute($this->mSqlQueries['do_add_pendidikan'], array($idPendidikan,$namaPendidikan));
      return $result;
   }
   
   function DoUpdatePendidikan($namaPendidikan,$idPendidikan){
      $result=$this->Execute($this->mSqlQueries['do_update_pendidikan'], array($namaPendidikan,$idPendidikan));
      return $result;
      print $this->GetLasError();
   } 
   
   function DoDeletePendidikanById($idPendidikan){
      $result=$this->Execute($this->mSqlQueries['do_delete_pendidikan_by_id'], array($idPendidikan));
      return $result;
   }
   function DoDeletePendidikanByArrayId($arrIdPendidikan){
      $idPendidikan= implode("', '", $arrIdPendidikan);
      $result=$this->Execute($this->mSqlQueries['do_delete_pendidikan_by_array_id'], array($idPendidikan));
      return $result;
   }
}  
?>
