<?php

class AppDetilTransaksiPenyusutan extends Database {

	protected $mSqlFile= 'module/transaksi_penyusutan/business/appdetiltransaksipenyusutan.sql.php';
	
	function __construct($connectionNumber=1) {
		parent::__construct($connectionNumber);
		//$this->mrDbEngine->debug = 1;
	}
		
	function GetData($offset, $limit, $awal, $akhir) {
		$result = $this->Open($this->mSqlQueries['get_data'], array($awal, $akhir, $offset, $limit));
      //print_r($result);
      #echo sprintf($this->mSqlQueries['get_data'], $awal, $akhir,$periode, $offset, $limit);
		return $result;
	}

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