<?php

class AppPenghasilanToSia extends Database {

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

      return $result;

	}
	
	function DoUpdatePenghasilan($phslrBesar, $phslrUrutan, $phslrId) {
		$result = $this->Execute($this->mSqlQueries['do_update_penghasilan'], array($phslrBesar,$phslrUrutan, $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;
	}
}
?>
