<?php
class Barang extends Database
{
   protected $mSqlFile= 'module/popup/business/popup_barang.sql.php';

	function __construct($connectionNumber=0)
   {
		parent::__construct($connectionNumber);
		
	}

   function GetDataBarangCount($data,$lokasiId,$unitId)
   {
     $result = $this->Open($this->mSqlQueries['get_data_barang_count'],array($lokasiId,$unitId,'%'.$data.'%'));
     return $result[0]['total'];
   }

   function GetDataBarang($data,$lokasiId,$unitId,$start = 0,$limit = 1000)
   {
      $result = $this->Open($this->mSqlQueries['get_data_barang'],array($lokasiId, $unitId,'%'.$data.'%',$start,$limit));
      #echo $this->GetLastError();
      return $result;
   }
}
?>