<?php

class AppSumberDanaToUm extends Database {

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

	function DoAddSumberDanaToUm($sbdnrId, $sbdnNama) {
		$result = $this->Execute($this->mSqlQueries['do_add_sumber_dana_to_um'], array($sbdnrId, $sbdnNama));			 
		return $result;
	}
	
	function DoUpdateSumberDanaUm($sbdnNama, $sbdnrId) {
		$result = $this->Execute($this->mSqlQueries['do_update_sumber_dana_um'], array($sbdnNama, $sbdnrId));
		return $result;
	}
	
	function DoDeleteSumberDanaUmById($sbdnrId) {
		$result=$this->Execute($this->mSqlQueries['do_delete_sumber_dana_um_by_id'], array($sbdnrId));
		return $result;
	}

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