<?php

class AppPredikatLulusToSia extends Database {

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

	function DoAddPredikatLulus($idPredikat,$namaPredikat,$namaAsingPredikat) {
		$result = $this->Execute($this->mSqlQueries['do_add_predikat_lulus'], array($idPredikat,$namaPredikat,$namaAsingPredikat));
   // print($this->GetLastError());
    return $result;

	}
	
	function DoUpdatePredikatLulus($idPredikat,$namaPredikat,$namaAsingPredikat) {
		$result = $this->Execute($this->mSqlQueries['do_update_predikat_lulus'], array( $namaPredikat,$namaAsingPredikat,$idPredikat,));
		return $result;
	}
	
	function DoDeletePredikatLulusById($idPredikat) {
		$result=$this->Execute($this->mSqlQueries['do_delete_predikat_lulus_by_id'], array($idPredikat));
		return $result;
	}

	function DoDeletePredikatLulusByArrayId($arrPredikatId) {
		$idPredikat = implode("', '", $arrPredikatId);
		$result=$this->Execute($this->mSqlQueries['do_delete_predikat_lulus_by_array_id'], array($idPredikat));

    return $result;
	}
}

?>