<?php
class AppProgramStudiToPortal extends Database {
   protected $mSqlFile= 'module/program_studi/business/appprogramstuditoportal.sql.php';
   
   function __construct($connectionNumber=2) {
      parent::__construct($connectionNumber);
      
   }  
   
   function DoAddProgramStudi($kodeProdi,$kodeUniv,$labelNim,$namaProdi,$jenjangAkademik,$model,$jurusan,$fakultas){      
      $result=$this->Execute($this->mSqlQueries['do_add_program_studi'],array($kodeProdi,$kodeUniv,$labelNim,$namaProdi,$jenjangAkademik,$model,$jurusan,$fakultas));
//print($this->GetLastError());
      return $result;
   }
   
   function DoUpdateProgramStudi($kodeProdi,$kodeUniv,$labelNim,$namaProdi,$jenjangAkademik,$model,$jurusan,$fakultas,$oldId){
      $result=$this->Execute($this->mSqlQueries['do_update_program_studi'],array($kodeProdi,$kodeUniv,$labelNim,$namaProdi,$jenjangAkademik,$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;
   }

}
?>
