<?php
class AppStatusRumahToUm extends Database {

	protected $mSqlFile= 'module/status_rumah/business/appstatusrumahtoum.sql.php';
	
	function __construct($connectionNumber=4) {
		parent::__construct($connectionNumber);
		
	}
   
   function DoAddStatusRumah($statusRumahId,$statusRumahNama){
      $result = $this->Execute($this->mSqlQueries['do_add_status_rumah'], array($statusRumahId,$statusRumahNama));      
      return $result;
   }
   
   function DoUpdateStatusRumah($statusRumahNama,$statusRumahId){
      $result = $this->Execute($this->mSqlQueries['do_update_status_rumah'], array($statusRumahNama,$statusRumahId));
		return $result;
   }
   
   function DoDeleteStatusRumahById($statusRumahId){
      $result=$this->Execute($this->mSqlQueries['do_delete_status_rumah_by_id'], array($statusRumahId));
		return $result;
   }
   
   function DoDeleteStatusRumahByArrayId($arrStatusRumahId) {
		$statusRumahId = implode("', '", $arrStatusRumahId);
		$result=$this->Execute($this->mSqlQueries['do_delete_status_rumah_by_array_id'], array($statusRumahId));
      return $result;
	}
}   
?>
