<?php

class AppPenghasilanToUm extends Database {

	protected $mSqlFile= 'module/penghasilan/business/apppenghasilantoum.sql.php';
	
	function __construct($connectionNumber=4) {
		parent::__construct($connectionNumber);
		
	}
		
	
//===DO==
	
	function DoAddPenghasilan($phslrId,$phslrMax,$phslrMin,$phslrKet) {
		$result = $this->Execute($this->mSqlQueries['do_add_penghasilan'], array($phslrId,$phslrMax,$phslrMin,$phslrKet));

      return $result;

	}
	
	function DoUpdatePenghasilan($phslrMax,$phslrMin,$phslrKet, $phslrId) {
		$result = $this->Execute($this->mSqlQueries['do_update_penghasilan'], array($phslrMax,$phslrMin,$phslrKet, $phslrId));
		return $result;
	}
	
	function DoDeletePenghasilanById($phslrId) {
		$result=$this->Execute($this->mSqlQueries['do_delete_penghasilan_by_id'], array($phslrId));
		return $result;
	}

	function DoDeletePenghasilanByArrayId($arrPhslrId) {
		$phslrId = implode("', '", $arrPhslrId);
		$result=$this->Execute($this->mSqlQueries['do_delete_penghasilan_by_array_id'], array($phslrId));
		return $result;
	}
}
?>
