Class: I2CE CustomReport (4.0.2)
This article describes the class I2CE_CustomReport .
- Extends the class: I2CE_Fuzzy.
- Location: Part of the module CustomReports in the package I2CE 4.0.2-release
- Source: Defined in the file modules/CustomReports/lib/I2CE_CustomReport.php on line 29
- Author: Carl Leitner <litlfred@ibiblio.org>
I2CE_CustomReport
Variables
$config
The magic data node holding the configuration information for this report $var protected I2CE_MagicDataNode $config
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 35
- Type: protected $config
$table
$var protected string $table the name of the cached table of the report
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 42
- Type: protected $table
$tmp_table
$var protected string $tmp_table the temporary name of the cached table of the report
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 47
- Type: protected $tmp_table
$db
The instance of the database to perform queries on.
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 52
- Type: protected MDB2 $db
$populate_queries
an array of queries used to populate the cached reports table(s)
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 58
- Type: protected array $populate_queries
$init_queries
an array of queries used to inialize the cached reports table(s)
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 63
- Type: protected array $init_queries
$get_field_def
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 108
- Type: protected MDB2_PreparedStatement $get_field_def
$report_table_cols
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 111
- Type: static protected $report_table_cols
$hooman
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 231
- Type: static protected $hooman
$reportedFunctions
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 459
- Type: protected $reportedFunctions
Methods
__construct()
The constructor
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 69
- Signature: public function __construct($report)
- Parameters:
- string $report
The report name
- string $report
_generateCache()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 429
- Signature: protected function _generateCache()
generateCache()
Below is the code to actually handle generation of reports Generate the cached report
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 370
- Signature: public function generateCache($force,$cache_forms)
- Parameters:
getCachedTableName()
Below is the static code to actually handle checking/setting the status of a cached report
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 158
- Signature: static public function getCachedTableName($report,$withDB,$table_prefix)
- Parameters:
- $report
- $withDB
- Default Value: true
- $table_prefix
- Default Value:
getColumnsInReportTable()
Get the actual columns in the cached report table
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 116
- Signature: static public function getColumnsInReportTable($report)
- Parameters:
- $report
getCreateField()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 722
- Signature: protected function getCreateField($form,$field,$name)
- Parameters:
- $form
- $field
- $name
getFormRelationship()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 101
- Signature: public function getFormRelationship()
getFormsRequiredByReport()
Gets the forms required by the report @param string $report
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 145
- Signature: public function getFormsRequiredByReport()
- Returns: array
of string
getLastGenerationTime()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 343
- Signature: static public function getLastGenerationTime($report)
- Parameters:
- string $report
The shortname for the report
- string $report
- Returns: mixed.
False on failure, int the time the last report generation on sucess
getReportedFunctions()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 476
- Signature: protected function getReportedFunctions()
getStatus()
Get the status of the requested report
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 247
- Signature: static public function getStatus($report,$hooman_readable)
- Parameters:
- string $report @param boolean hooman_readable defaults to false.
- $hooman_readable
- Default Value: false
- Returns: string
'does_not_exist','not_generated','generated','failed','in_progress', 'stale' if it is not hooman readable *
hasFailed()
Checks to see if a report has failed in its generation
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 204
- Signature: static public function hasFailed($report)
- Parameters:
- string $report
- Returns: mixed.
True if it has failed, false if it has not failed, null if the report does not exist.
isStale()
Check to see if a report is stale.
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 291
- Signature: static public function isStale($report)
- Parameters:
- string $report
- Returns: boolean
true/false
processReportingFunctions()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 462
- Signature: protected function processReportingFunctions()
reportExists()
Checks to see if a report exists
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 191
- Signature: static public function reportExists($report)
- Parameters:
- string $report
- Returns: boolean
setStatus()
Set the status us a report.
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 279
- Signature: static public function setStatus($report,$status)
- Parameters:
setupQueries()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 502
- Signature: protected function setupQueries()
Inherited Methods
_hasMethod()
This public method is inherited from I2CE_Fuzzy->_hasMethod()
Inherited Fuzzy Methods
userMessage()
This method is inherited from I2CE_Fuzzy->userMessage()