<?php
class AppJurusanToSia extends Database {

   protected $mSqlFile= 'module/jurusan/business/appjurusantosia.sql.php';
   
   function __construct($connectionNumber=1) {
      parent::__construct($connectionNumber);
      
   }
//------------------------do---------------------------------------------------------------   
   function DoAddJurusan($kodeJur,$kodeFak, $namaResmiJur, $namaSingkatJur){
            
      $result=$this->Execute($this->mSqlQueries['do_add_jurusan'],array($kodeJur,
                                        $kodeFak,
                                        $namaResmiJur,
                                        $namaSingkatJur ));
      #
     return $result;
   }
   
   function DoUpdateJurusan($kodeFak, $namaResmiJur, $namaSingkatJur,$dataId){
            
      $result=$this->Execute($this->mSqlQueries['do_update_jurusan'],array($kodeFak,
                                        $namaResmiJur,
                                        $namaSingkatJur,
                                        $dataId));

      return $result;
   }
   
   function DoDeleteJurusanById($kodeJur){
      
      $result=$this->Execute($this->mSqlQueries['do_delete_jurusan_by_id'],array($kodeJur));
      
      return $result;
   }
   
   function DoDeleteJurusanByArrayId($arrKodeJur){
      $kodeJur = implode("', '", $arrKodeJur);
      
      $result=$this->Execute($this->mSqlQueries['do_delete_jurusan_by_array_id'],array($kodeJur));
      return $result;
   }
}