<?php

class AppSumberDanaToSia extends Database {

	protected $mSqlFile= 'module/sumber_dana/business/appsumberdanatosia.sql.php';
	
	function __construct($connectionNumber=1) {
		parent::__construct($connectionNumber);
				
	}
//===GET==

//===DO==
	
	function DoAddSumberDanaToSia($sbdnrId, $sbdnNama) {
		$result = $this->Execute($this->mSqlQueries['do_add_sumber_dana_to_sia'], array($sbdnrId, $sbdnNama));			 
      # print($this->GetLastError());
		return $result;
	}
	
	function DoUpdateSumberDanaSia($sbdnNama, $sbdnrId) {
		$result = $this->Execute($this->mSqlQueries['do_update_sumber_dana_sia'], array($sbdnNama, $sbdnrId));
		return $result;
	}
	
	function DoDeleteSumberDanaSiaById($sbdnrId) {
		$result=$this->Execute($this->mSqlQueries['do_delete_sumber_dana_sia_by_id'], array($sbdnrId));
		return $result;
	}

	function DoDeleteSumberDanaSiaByArrayId($arrSbdnrId) {
		$sbdnrId = implode("', '", $arrSbdnrId);
		$result=$this->Execute($this->mSqlQueries['do_delete_sumber_dana_sia_by_array_id'], array($sbdnrId));
		return $result;
	}
}
?>
