<?php
class AppProgramStudiToSia extends Database {
   protected $mSqlFile= 'module/program_studi/business/appprogramstuditosia.sql.php';
   
   function __construct($connectionNumber=1) {
      parent::__construct($connectionNumber);
      
   }  
   
   function GetTUnit(){
      $result=$this->Open($this->mSqlQueries['get_t_unit_sia'],array());
      return $result;
   }
   
   function DoAddProgramStudi($kodeProdi,$kodeUniv,$labelNim,$namaProdi,$jenjangAkademik,$ekstakta,$model,$jurusan,$fakultas,$tunit){
      $result=$this->Execute($this->mSqlQueries['do_add_program_studi'],array($kodeProdi,$kodeUniv,$labelNim,$namaProdi,$jenjangAkademik,$ekstakta,$model,$jurusan,$fakultas,$tunit));
      //print($this->GetLastError());exit;
      return $result;
   }
   
   function DoUpdateProgramStudi($kodeProdi,$kodeUniv,$labelNim,$namaProdi,$jenjangAkademik,$ekstakta,$model,$jurusan,$fakultas,$oldId){
      $result=$this->Execute($this->mSqlQueries['do_update_program_studi'],array($kodeProdi,$kodeUniv,$labelNim,$namaProdi,$jenjangAkademik,$ekstakta,$model,$jurusan,$fakultas,$oldId));   
      return $result;
   }
   
   function DoDeleteProgramStudiById($kodeProdi){
      $result=$this->Execute($this->mSqlQueries['do_delete_program_studi_by_id'],array($kodeProdi));
      return $result;
   }
   
   function DoDeleteProgramStudiByArrayId($arrKodeProdi){
      $kodeProdi = implode("', '", $arrKodeProdi);
      $result=$this->Execute($this->mSqlQueries['do_delete_program_studi_by_array_id'],array($kodeProdi));
      return $result;
   }

}
?>
