<?php
class AppJalurMasukToSia extends Database {

	protected $mSqlFile= 'module/jalur_masuk/business/appjalurmasuktosia.sql.php';
   
   function __construct($connectionNumber=1) {
		parent::__construct($connectionNumber);
		
	}
   //===DO==
	
	function DoAddJalurMasuk($jalurMasukId,$jalurMasukNama) {
		$result = $this->Execute($this->mSqlQueries['do_add_jalur'], array($jalurMasukId,$jalurMasukNama));
  	return $result;
	}
	
	function DoUpdateJalurMasuk($jalurMasukKode,$jalurMasukNama,$jalurMasukId) {
		$result = $this->Execute($this->mSqlQueries['do_update_jalur'], array($jalurMasukKode,$jalurMasukNama,$jalurMasukId));

		return $result;
	}
	
	function DoDeleteJalurMasukById($jalurMasukId) {
		$result=$this->Execute($this->mSqlQueries['do_delete_jalur_by_id'], array($jalurMasukId));
		return $result;
	}

	function DoDeleteJalurMasukByArrayId($arrJalurMasukId) {
		$jalurMasukId = implode("', '", $arrJalurMasukId);
		$result=$this->Execute($this->mSqlQueries['do_delete_jalur_by_array_id'], array($jalurMasukId));
     //print($this->GetLastError());
      return $result;
   }
}
?>