<?php
class AppJalurMasukToFinansi extends Database {

	protected $mSqlFile= 'module/jalur_masuk/business/appjalurmasuktofinansi.sql.php';
   
   function __construct($connectionNumber=3) {
		parent::__construct($connectionNumber);
    	
	}
   //===DO==
	
	function DoAddJalurMasuk($jalurKode, $jalurMasukNama) {
		$result = $this->Execute($this->mSqlQueries['do_add_jalur'], array($jalurKode, $jalurMasukNama));
      //print($this->GetLastError());
      return $result;
	}
	
	function DoUpdateJalurMasuk($jalurKode, $jalurMasukNama,$jalurMasukId) {
		$result = $this->Execute($this->mSqlQueries['do_update_jalur'], array($jalurKode, $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_id'], array($jalurMasukId));
      return $result;
   }
}
?>