CORE POS - Fannie
The CORE POS back end
|
Public Member Functions | |
fetchReportData ($report_class_name,\FannieConfig $config,\SQLManager $connection) | |
additionalFields ($report_class_name) | |
Static Public Member Functions | |
static | getDataSource ($report_class_name) |
Protected Member Functions | |
sourceForReport ($report_class_name) | |
dateToID ($date) | |
Protected Attributes | |
$valid_reports = array() | |
Base class for extracting transaction data from Core Warehouse Plugin tables and feeding that data back into default reports
COREPOS\Fannie\Plugin\CoreWarehouse\CwReportDataSource::additionalFields | ( | $report_class_name) |
Get list of additional fields, if any, that can be used with this data source and the specified report
[string] | $report_class_name name of report |
|
protected |
Convert a date string to a warehouse format date ID Ex: 2000-10-31 => 20001031
$date | [string] date representation |
COREPOS\Fannie\Plugin\CoreWarehouse\CwReportDataSource::fetchReportData | ( | $report_class_name, | |
\FannieConfig | $config, | ||
\SQLManager | $connection | ||
) |
Fetch data for the specified report
[string] | $report_class_name name of report |
[FannieConfig] | $config current configuration |
[SQLManager] | $connection database connection |
|
static |
Find a data source class for the existing name
[string] | $report_class_name name of report |
|
protected |
Can this source be used with the given report
[string] | $report_class_name name of report |