<?php
class AppJenisSemesterToFinansi extends Database {

	protected $mSqlFile= 'module/jenis_semester/business/appjenissemestertofinansi.sql.php';
   
   function __construct($connectionNumber=3) {
		parent::__construct($connectionNumber);
		
	}
      
   function DoAddJenisSemester($namaSemId,$namaSemNama,$periodeNamaId){
      $result=$this->Execute($this->mSqlQueries['do_add_jenis_semester'],array($namaSemId,
                                                                               $namaSemNama,
                                                                               $periodeNamaId));
                                                                               
      return $result;
   }
   
   function DoUpdateJenisSemester($namaSemNama,$periodeNamaId,$idData){
      $result=$this->Execute($this->mSqlQueries['do_update_jenis_semester'],array($namaSemNama,
                                                                                  $periodeNamaId,
                                                                                  $idData));
      return $result;
   }
   
   function DoDeleteJenisSemesterById($idData){
      $result=$this->Execute($this->mSqlQueries['do_delete_semester_by_id'],array($idData));
      return $result;
   }
   
   function DoDeleteJenisSemesterByArrayId($arrIdData){
      $idData = implode("', '", $arrIdData);
      $result=$this->Execute($this->mSqlQueries['do_delete_semester_by_array_id'],array($idData));
      return $result;
   }
}
?>