<?php
class AppJurusanSmtaToSia extends Database {

   protected $mSqlFile= 'module/jurusan_smta/business/appjurusansmtatosia.sql.php';
   
   function __construct($connectionNumber=1) {
		parent::__construct($connectionNumber);
		
	}
   
   function DoAddJurusanSmta($kodeJurusanSmta,$namaJurusanSmta) {
		$result = $this->Execute($this->mSqlQueries['do_add_jurusan_smta'], array($kodeJurusanSmta,$namaJurusanSmta));
      return $result;
	}
	
	function DoUpdateJurusanSmta($kodeJurusanSmta, $namaJurusanSmta,$idJurusan) {
		$result = $this->Execute($this->mSqlQueries['do_update_jurusan_smta'], array($kodeJurusanSmta, $namaJurusanSmta,$idJurusan));
		return $result;
	}
	
	function DoDeleteJurusanSmtaById($kodeJurusan) {
		$result=$this->Execute($this->mSqlQueries['do_delete_jurusan_smta_by_id'], array($kodeJurusan));
		return $result;
	}

	function DoDeleteJurusanSmtaByArrayId($arrJurusanKode) {
		$kodeJurusan = implode("', '", $arrJurusanKode);
		$result=$this->Execute($this->mSqlQueries['do_delete_smta_jurusan_by_array_id'], array($kodeJurusan));
		//print $this->GetLastError();
    return $result;
	}
}
?>