![]() |
Xataface HTML Reports Module 0.2
HTML Reports Module for Xataface
|
The main HTML Report module class. This includes all of the core module tasks. More...
Public Member Functions | |
| __construct () | |
| Constructor for the module. This is called only once per request when the module is initialized. | |
| getBaseURL () | |
| Returns the base URL to this module's directory. Useful for including Javascripts and CSS. | |
| getReportById ($id) | |
| Returns a report by its report id. | |
Static Public Member Functions | |
| static | getReportsTableSQL () |
| Returns the SQL required to build the reports table. | |
| static | q ($sql) |
| Performs an SQL query or an array of queries. | |
| static | queryReports ($sql) |
| Performs an SQL query - but catches errors and tries to create the reports table if it fails the first time. This allows the reports table to be created on demand if necessary. Kind of a cheap trick for an auto install. | |
Data Fields | |
| const | REPORTS_TABLE = 'dataface__htmlreports_reports' |
| The name of the table that stores the report template. | |
The main HTML Report module class. This includes all of the core module tasks.
$moduleTool = Dataface_ModuleTool::getInstance();
$reportsModule = $moduleTool->loadModule('modules_htmlreports');
Definition at line 34 of file htmlreports.php.
| __construct | ( | ) |
Constructor for the module. This is called only once per request when the module is initialized.
Definition at line 129 of file htmlreports.php.
| getBaseURL | ( | ) |
Returns the base URL to this module's directory. Useful for including Javascripts and CSS.
Definition at line 192 of file htmlreports.php.
| getReportById | ( | $ | id | ) |
Returns a report by its report id.
| int | $id | The integer id. |
Definition at line 205 of file htmlreports.php.
| static getReportsTableSQL | ( | ) | [static] |
Returns the SQL required to build the reports table.
Definition at line 54 of file htmlreports.php.
| static q | ( | $ | sql | ) | [static] |
Performs an SQL query or an array of queries.
| mixed | $sql | The SQL query string to be run or an array of queries. |
| Exception | If there is an error. |
Definition at line 87 of file htmlreports.php.
| static queryReports | ( | $ | sql | ) | [static] |
Performs an SQL query - but catches errors and tries to create the reports table if it fails the first time. This allows the reports table to be created on demand if necessary. Kind of a cheap trick for an auto install.
| mixed | $sql | The SQL query string to be run or an array of queries. |
| Exception | If there is an error. |
Definition at line 113 of file htmlreports.php.
| const REPORTS_TABLE = 'dataface__htmlreports_reports' |
The name of the table that stores the report template.
Definition at line 39 of file htmlreports.php.
1.7.4