<?php

class AppAgamaToUm extends Database {

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

//===DO===
	
	function DoAddAgamaToUm($agmId,$agmNama) {
		$result = $this->Execute($this->mSqlQueries['do_add_agama_to_um'], array($agmId,$agmNama));
	//	print($this->GetLastError());
		return $result;
	}
	
	function DoUpdateAgamaToUm($agmNama, $agmId) {
		$result = $this->Execute($this->mSqlQueries['do_update_agama_to_um'], array($agmNama, $agmId));
		return $result;
	}
	
	function DoDeleteAgamaUmById($agmId) {
		$result=$this->Execute($this->mSqlQueries['do_delete_agama_um_by_id'], array($agmId));
		return $result;
	}

	function DoDeleteAgamaUmByArrayId($arrAgmId) {
		$agmId = implode("', '", $arrAgmId);
		$result=$this->Execute($this->mSqlQueries['do_delete_agama_um_by_array_id'], array($agmId));
		return $result;
	}

}
?>
