<?php

class AppAgamaToSia extends Database {

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

//===DO===
	
	function DoAddAgamaToSia($agmId,$agmNama) {
		$result = $this->Execute($this->mSqlQueries['do_add_agama_to_sia'], array($agmId,$agmNama));
		return $result;
	}
	
	function DoUpdateAgamaToSia($agmNama, $agmId) {
		$result = $this->Execute($this->mSqlQueries['do_update_agama_to_sia'], array($agmNama, $agmId));
		return $result;
	}
	
	function DoDeleteAgamaSiaById($agmId) {
		$result=$this->Execute($this->mSqlQueries['do_delete_agama_sia_by_id'], array($agmId));
		return $result;
	}

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

}
?>
