<?php

class AppPekerjaanToUm extends Database {

	protected $mSqlFile= 'module/pekerjaan/business/apppekerjaantoum.sql.php';
	
	function __construct($connectionNumber=4) {
		parent::__construct($connectionNumber);
		
	}
	function DoAddPekerjaanToUm($pkjrId, $pkjrNama) {
		$result = $this->Execute($this->mSqlQueries['do_add_pekerjaan_to_um'], array($pkjrId, $pkjrNama));
		//print($this->GetLastError());
		return $result;
	}
	
	function DoUpdatePekerjaanUm($pkjrNama, $pkjrId) {
		$result = $this->Execute($this->mSqlQueries['do_update_pekerjaan_um'], array($pkjrNama, $pkjrId));
		return $result;
	}
	
	function DoDeletePekerjaanUmById($pkjrId) {
		$result=$this->Execute($this->mSqlQueries['do_delete_pekerjaan_um_by_id'], array($pkjrId));
		return $result;
	}

	function DoDeletePekerjaanUmByArrayId($arrPkjrId) {
		$pkjrId = implode("', '", $arrPkjrId);
		$result=$this->Execute($this->mSqlQueries['do_delete_pekerjaan_um_by_array_id'], array($pkjrId));
	//	print($this->GetLastError());
		return $result;
	}
}
?>
