mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-02 14:37:55 -05:00
26 lines
850 B
PHP
26 lines
850 B
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
abstract class Report extends CI_Model
|
|
{
|
|
function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
//Make sure the report is not cached by the browser
|
|
$this->output->set_header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
|
|
$this->output->set_header('Cache-Control: no-store, no-cache, must-revalidate');
|
|
$this->output->set_header('Cache-Control: post-check=0, pre-check=0', FALSE);
|
|
$this->output->set_header('Pragma: no-cache');
|
|
}
|
|
|
|
// Returns the column names used for the report
|
|
public abstract function getDataColumns();
|
|
|
|
// Returns all the data to be populated into the report
|
|
public abstract function getData(array $inputs);
|
|
|
|
// Returns key=>value pairing of summary data for the report
|
|
public abstract function getSummaryData(array $inputs);
|
|
}
|
|
?>
|