<?php
class LaporanInventarisasiTanah extends Database {

   protected $mSqlFile= 'module/laporan_inventarisasi_tanah/business/laporan_inventarisasi_tanah.sql.php';
   
   function __construct($connectionNumber=0) {
      parent::__construct($connectionNumber);
   }
   
   public function GetInventarisasiTanah($data, $start, $end)
   {
   	extract($data);
   	
   	$arrData = array(
   		"%$keyword%", "%$keyword%", $tahun, $start, $end
   	);
		$result = $this->Open($this->mSqlQueries['get_data_inventarisasi_tanah'], $arrData);
		return $result;
   }
   
   
   public function GetInventarisasiTanahCount()
   {
		$result = $this->Open($this->mSqlQueries['get_data_inventarisasi_tanah_count'], array());
		return $result[0]['total'];
   }
   
   public function GetInventarisasiTanahById($id)
   {
		$result = $this->Open($this->mSqlQueries['get_inventarisasi_tanah_by_id'], array($id));
		return $result[0];
   }
}
?>
