Class: I2CE CustomReport (4.0.9)
This article describes the class I2CE_CustomReport .
- Extends the class: I2CE_Fuzzy.
- Location: Part of the module CustomReports in the package I2CE 4.0.9-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
$get_field_def
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 102
- Type: protected MDB2_PreparedStatement $get_field_def
$report_table_cols
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 105
- Type: static protected $report_table_cols
$hooman
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 230
- Type: static protected $hooman
$reportedFunctions
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 471
- Type: protected $reportedFunctions
Methods
__construct()
The constructor
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 65
- 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 446
- 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 383
- 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 152
- Signature: static public function getCachedTableName($report,$withDB,$table_prefix,$counter)
- Parameters:
- $report
- $withDB
- Default Value: true
- $table_prefix
- Default Value:
- $counter
- Default Value: false
getColumnsInReportTable()
Get the actual columns in the cached report table
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 110
- Signature: static public function getColumnsInReportTable($report)
- Parameters:
- $report
getCreateField()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 866
- Signature: protected function getCreateField($form,$field,$name)
- Parameters:
- $form
- $field
- $name
getFormRelationship()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 95
- 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 139
- Signature: public function getFormsRequiredByReport()
- Returns: array
of string
getLastGenerationTime()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 356
- 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 473
- Signature: protected function getReportedFunctions()
getStatus()
Get the status of the requested report
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 260
- 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 202
- 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.
hooman()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 231
- Signature: static protected function hooman($key)
- Parameters:
- $key
isStale()
Check to see if a report is stale.
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 304
- Signature: static public function isStale($report)
- Parameters:
- string $report
- Returns: boolean
true/false
reportExists()
Checks to see if a report exists
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 189
- 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 292
- Signature: static public function setStatus($report,$status)
- Parameters:
setupQueries()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport.php on line 500
- 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()