<?php

class AppHubunganBiayaToSia extends Database {

	protected $mSqlFile= 'module/hubungan_biaya/business/apphubunganbiayatosia.sql.php';
	
	function __construct($connectionNumber=1) {
		parent::__construct($connectionNumber);
		
	}

//===DO==
	
	function DoAddHubunganBiaya($hubunganBiayaId,$hubunganBiayaNama) {
		$result = $this->Execute($this->mSqlQueries['do_add_hubungan_biaya'], array($hubunganBiayaId,$hubunganBiayaNama));
     // print($this->GetLastError());
      return $result;
	}
	
	function DoUpdateHubunganBiaya($hubunganBiayaNama,$hubunganBiayaId) {
		$result = $this->Execute($this->mSqlQueries['do_update_hubungan_biaya'], array($hubunganBiayaNama,$hubunganBiayaId));
		return $result;
	}
	
	function DoDeleteHubunganBiayaById($hubunganBiayaId) {
		$result=$this->Execute($this->mSqlQueries['do_delete_hubungan_biaya_by_id'], array($hubunganBiayaId));
		return $result;
	}

	function DoDeleteHubunganBiayaByArrayId($arrHubunganBiayaId) {
		$hubunganBiayaId = implode("', '", $arrHubunganBiayaId);
		$result=$this->Execute($this->mSqlQueries['do_delete_hubungan_biaya_by_array_id'], array($hubunganBiayaId));
    return $result;
	}
}
?>
