<?php

class AppWargaNegaraToSia extends Database {

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

//===DO==
	
	function DoAddWargaNegaraToSia($wnrId, $wnrNegara) {
		$result = $this->Execute($this->mSqlQueries['do_add_warga_negara_to_sia'], array($wnrId, $wnrNegara));
		return $result;
	}
	
	function DoUpdateWargaNegaraSia($wnrNegara, $wnrId) {
		$result = $this->Execute($this->mSqlQueries['do_update_warga_negara_sia'], array($wnrNegara, $wnrId));
		return $result;
	}
	
	function DoDeleteWargaNegaraSiaById($wnrId) {
		$result=$this->Execute($this->mSqlQueries['do_delete_warga_negara_sia_by_id'], array($wnrId));
		return $result;
	}

	function DoDeleteWargaNegaraSiaByArrayId($arrWnrId) {
		$wnrId = implode("', '", $arrWnrId);
		$result=$this->Execute($this->mSqlQueries['do_delete_warga_negara_sia_by_array_id'], array($wnrId));
		return $result;
	}
}
?>
