<?php

class Popup extends Database {

	protected $mSqlFile= 'module/penyusutan/business/PopupKelompok.sql.php';
	
	function __construct($connectionNumber=0) {
		parent::__construct($connectionNumber);
	}
		
	function GetData($offset, $limit, $bidang = '', $kelompok = '')
   {
      $result = $this->Open($this->mSqlQueries['get_data'], array("%$kelompok%", "%$kelompok%", $offset, $limit));
		return $result;
	}

	function GetCountData($bidang='', $kelompok='')
   {
      $result = $this->Open($this->mSqlQueries['get_count_data'], array("%$kelompok%", "%$kelompok%"));
      if (!$result) {
			return 0;
		} else {
			return $result[0]['total'];
		}
	}
}
?>
