<?php

class AppStatusNikahToUm extends Database {

	protected $mSqlFile= 'module/status_nikah/business/appstatusnikahtoum.sql.php';
	
	function __construct($connectionNumber=4) {
		parent::__construct($connectionNumber);
		
	}

	function DoAddStatusNikahToUm($stnkrId, $stnkrNama) {
		$result = $this->Execute($this->mSqlQueries['do_add_status_nikah_to_um'], array($stnkrId, $stnkrNama));
	#	print($this->GetLastError());
		return $result;
	}
	
	function DoUpdateStatusNikahUm($stnkrNama, $stnkrId) {
		$result = $this->Execute($this->mSqlQueries['do_update_status_nikah_um'], array($stnkrNama, $stnkrId));
      #	print($this->GetLastError());
		return $result;
	}
	
	function DoDeleteStatusNikahUmById($stnkrId) {
		$result=$this->Execute($this->mSqlQueries['do_delete_status_nikah_um_by_id'], array($stnkrId));
		return $result;
	}

	function DoDeleteStatusNikahUmByArrayId($arrStnkrId) {
		$stnkrId = implode("', '", $arrStnkrId);
		$result=$this->Execute($this->mSqlQueries['do_delete_status_nikah_um_by_array_id'], array($stnkrId));
		return $result;
	}
}
?>
