Class: I2CE CustomReport Template (Development)
This article describes the class I2CE_CustomReport_Template .
- Extends the class: I2CE_MagicDataTemplate.
- Location: Part of the module CustomReports in the package I2CE 4.0-dev
- Source: Defined in the file modules/CustomReports/lib/I2CE_CustomReport_Template.php on line 29
- Author: Carl Leitner <litlfred@ibiblio.org>
I2CE_CustomReport_Relationship_Template
Variables
$templates
An array of requested relationships templates I2CE_CustomReport_Template indexed by the type and then by name @protected static array $templates
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Template.php on line 35
- Type: static protected $templates
$types
An array index by configTypes. the values are arrays whose keys are fields with values the config types the fields are supposed to have array $types
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Template.php on line 89
- Type: static protected static $types
$blanket
An array with keys config types such that all sub-nodes of a node with this configType will have the configType specified by the value associated to the key array $blanket
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Template.php on line 125
- Type: static protected static $blanket
$required
an array with keys configTypes with values the required fields for that config type. will cause a failure if not present $var protecected static $required
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Template.php on line 147
- Type: static protected $required
$ensure
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Template.php on line 157
- Type: static protected $ensure
$permissions
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Template.php on line 167
- Type: static protected $permissions
Methods
compareByDisplayName()
Compares to arrays with keys 'display_name' to see which is "bigger"
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Template.php on line 394
- Signature: static public function compareByDisplayName($m,$n)
- Parameters:
- Returns: boolean
createExport()
Create an export node by appending on to the given configurationGroup node the values stored in the magic data.
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Template.php on line 220
- Signature: public function createExport($configNode,$config,$pipe,$configType,$status)
- Parameters:
- DOMNode $configNode
A configurationGroup node. - I2CE_MagicDataNode $config
The data we wish to store at this node - mixed $pipe
A path component or an array of path components relative to the $config. If the pipe is a non-empty array, we export only the keys specifed by the lowest member of $pipe, if it exists. Otherwise, if the pipe is empty or null, we export all keys. Defaults to empty array- Default Value: null
- string $configType
Defaults to the empty string. The configuration type to give the configuration node.- Default Value:
- array $status
An array of status options we should set for this configuration node. Defaults to the empty array- Default Value: array()
- DOMNode $configNode
createExportNodeConfigurationGroup()
Create an configurationGroup node by appending on to the given configurationGroup node the values stored in the magic data at the specified $key.
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Template.php on line 191
- Signature: public function createExportNodeConfigurationGroup($configNode,$config,$pipe,$key,$configType,$status)
- Parameters:
- DOMNode $configNode
A configurationGroup node. - I2CE_MagicDataNode $config
The data we wish to store at this node - array $pipe
An array of path components relative to the $config. If the pipe is a non-empty array, we export only the keys specifed by the lowest member of $pipe, if it exists. Otherwise, if the pipe is empty, we export all keys - string $key
The key. (Warning. It assumes it exists in the magic data!) - string $configType
Defaults to the empty string. The configuration type to give the configuration node. - array $status
An array of status options we should set for this configuration node. Defaults to the empty array
- DOMNode $configNode
getFormFromReportForm()
Looks up the form associated to a reportform in the specified relationship
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Template.php on line 478
- Signature: static public function getFormFromReportForm($relationship,$reportform)
- Parameters:
- Returns: string.
The false on failure
getRelationshipFromReport()
Get the relationship associated to a report
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Template.php on line 454
- Signature: static public function getRelationshipFromReport($report)
- Parameters:
- string $report
- Returns: strng.
The empty string on failure
getReportFields()
Get the reported fields for a report
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Template.php on line 277
- Signature: static public function getReportFields($report,$get_disabled)
- Parameters:
- Returns: array
with keys the field name of the form "$form+$field" and values the header for the field
getReportNames()
Get a list of the existing reports
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Template.php on line 317
- Signature: static public function getReportNames($cheat)
- Parameters:
- $cheat
- Default Value: false
- $cheat
- Returns: array
with keys report shortnames and values an array with indices 'display_name' and 'description' and 'category' and 'config_node'. the last is template config node for the report reports are sorted aplhpabeticaly by 'display_name'
getReportViews()
Get a list of the existing report views
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Template.php on line 405
- Signature: static public function getReportViews()
- Returns: array
with keys report view names/index and values an array with indices 'display_name' and 'description' and 'report' and 'config_node', the last is the template confignode which contains the view reports are sorted alhpabeticaly by 'display_name'
getReportViewsByReport()
Get the report view sorted by report
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Template.php on line 438
- Signature: static public function getReportViewsByReport()
- Returns: array.
a multi-dimensional array. the first index is the short name of the report. the second index is the name/index of the report view. This in turn refers to an array with keys 'display_name' and 'description' and 'config_node', the last is the template confignode which contains the view
getReportsByCategory()
Get the reports available by category
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Template.php on line 374
- Signature: static public function getReportsByCategory($cheat)
- Parameters:
- $cheat
- Default Value: false
- $cheat
- Returns: array
a multi-dimensional array. the first set of indices is the category sorted alphabetically the second set of indices are the reports for that category. for each of these we have an array indexed by 'display_name' and 'description' and 'config_node'. the last is template config node for the report the second set of indices is sorted alphabetically by 'display_name'
getTemplate()
Gets a template. Also caches the results
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Template.php on line 45
- Signature: static public function getTemplate($type,$name)
- Parameters:
- Returns: I2CE_CustomReportTemplate
on sucess
Inherited Methods
__construct()
This public method is inherited from I2CE_MagicDataTemplate->__construct()
getConfigMetaData()
This public method is inherited from I2CE_MagicDataTemplate->getConfigMetaData()
getConfigurationTextContent()
This public method is inherited from I2CE_MagicDataTemplate->getConfigurationTextContent()
getDefaultStatus()
This public method is inherited from I2CE_MagicDataTemplate->getDefaultStatus()
getMerges()
This public method is inherited from I2CE_MagicDataTemplate->getMerges()
getTextContent()
This public method is inherited from I2CE_MagicDataTemplate->getTextContent()
processStatus()
This public method is inherited from I2CE_MagicDataTemplate->processStatus()
processValues()
This public method is inherited from I2CE_MagicDataTemplate->processValues()
setConfigValues()
This public method is inherited from I2CE_MagicDataTemplate->setConfigValues()
validate()
This public method is inherited from I2CE_MagicDataTemplate->validate()
getConfigPath()
This protected method is inherited from I2CE_MagicDataTemplate->getConfigPath()
processValues_boolean_single()
This protected method is inherited from I2CE_MagicDataTemplate->processValues_boolean_single()
processValues_delimited_many()
This protected method is inherited from I2CE_MagicDataTemplate->processValues_delimited_many()
processValues_delimited_single()
This protected method is inherited from I2CE_MagicDataTemplate->processValues_delimited_single()
processValues_list_many()
This protected method is inherited from I2CE_MagicDataTemplate->processValues_list_many()
processValues_list_single()
This protected method is inherited from I2CE_MagicDataTemplate->processValues_list_single()
processValues_string_many()
This protected method is inherited from I2CE_MagicDataTemplate->processValues_string_many()
processValues_string_single()
This protected method is inherited from I2CE_MagicDataTemplate->processValues_string_single()
traversePaths()
This protected method is inherited from I2CE_MagicDataTemplate->traversePaths()
updateClassPath()
This protected method is inherited from I2CE_MagicDataTemplate->updateClassPath()
updatePaths()
This protected method is inherited from I2CE_MagicDataTemplate->updatePaths()
validateValues_string_single()
This protected method is inherited from I2CE_MagicDataTemplate->validateValues_string_single()
addFile()
This public method is inherited from I2CE_TemplateMeister->addFile()
addHeader()
This public method is inherited from I2CE_TemplateMeister->addHeader()
addText()
This public method is inherited from I2CE_TemplateMeister->addText()
addTextNode()
This public method is inherited from I2CE_TemplateMeister->addTextNode()
appendElementById()
This public method is inherited from I2CE_TemplateMeister->appendElementById()
appendElementByNode()
This public method is inherited from I2CE_TemplateMeister->appendElementByNode()
appendFileById()
This public method is inherited from I2CE_TemplateMeister->appendFileById()
appendFileByName()
This public method is inherited from I2CE_TemplateMeister->appendFileByName()
appendFileByNode()
This public method is inherited from I2CE_TemplateMeister->appendFileByNode()
appendNode()
This public method is inherited from I2CE_TemplateMeister->appendNode()
appendNodeById()
This public method is inherited from I2CE_TemplateMeister->appendNodeById()
appendNodeByName()
This public method is inherited from I2CE_TemplateMeister->appendNodeByName()
appendNodesByName()
This public method is inherited from I2CE_TemplateMeister->appendNodesByName()
appendTextById()
This public method is inherited from I2CE_TemplateMeister->appendTextById()
appendTextByName()
This public method is inherited from I2CE_TemplateMeister->appendTextByName()
changeAttributesOnNodes()
This public method is inherited from I2CE_TemplateMeister->changeAttributesOnNodes()
clearHeaders()
This public method is inherited from I2CE_TemplateMeister->clearHeaders()
createElement()
This public method is inherited from I2CE_TemplateMeister->createElement()
createTextNode()
This public method is inherited from I2CE_TemplateMeister->createTextNode()
evaluate()
This public method is inherited from I2CE_TemplateMeister->evaluate()
findAndRemoveNodes()
This public method is inherited from I2CE_TemplateMeister->findAndRemoveNodes()
findTemplate()
This public method is inherited from I2CE_TemplateMeister->findTemplate()
getDisplay()
This public method is inherited from I2CE_TemplateMeister->getDisplay()
getDoc()
This public method is inherited from I2CE_TemplateMeister->getDoc()
getElementById()
This public method is inherited from I2CE_TemplateMeister->getElementById()
getElementByName()
This public method is inherited from I2CE_TemplateMeister->getElementByName()
getElementByTagName()
This public method is inherited from I2CE_TemplateMeister->getElementByTagName()
getHeaders()
This public method is inherited from I2CE_TemplateMeister->getHeaders()
getUser()
This public method is inherited from I2CE_TemplateMeister->getUser()
importText()
This public method is inherited from I2CE_TemplateMeister->importText()
loadFile()
This public method is inherited from I2CE_TemplateMeister->loadFile()
loadRootFile()
This public method is inherited from I2CE_TemplateMeister->loadRootFile()
loadRootText()
This public method is inherited from I2CE_TemplateMeister->loadRootText()
prepareDisplay()
This public method is inherited from I2CE_TemplateMeister->prepareDisplay()
processArgs()
This public method is inherited from I2CE_TemplateMeister->processArgs()
query()
This public method is inherited from I2CE_TemplateMeister->query()
reIdNodes()
This public method is inherited from I2CE_TemplateMeister->reIdNodes()
removeNode()
This public method is inherited from I2CE_TemplateMeister->removeNode()
removeNodeById()
This public method is inherited from I2CE_TemplateMeister->removeNodeById()
renameNodes()
This public method is inherited from I2CE_TemplateMeister->renameNodes()
replaceNode()
This public method is inherited from I2CE_TemplateMeister->replaceNode()
setAttribute()
This public method is inherited from I2CE_TemplateMeister->setAttribute()
setLoadOptions()
This public method is inherited from I2CE_TemplateMeister->setLoadOptions()
setNodeAttribute()
This public method is inherited from I2CE_TemplateMeister->setNodeAttribute()
setUser()
This public method is inherited from I2CE_TemplateMeister->setUser()
setVerboseErrors()
This public method is inherited from I2CE_TemplateMeister->setVerboseErrors()
setWorkingDir()
This public method is inherited from I2CE_TemplateMeister->setWorkingDir()
xmlError()
This public method is inherited from I2CE_TemplateMeister->xmlError()
_loadFile()
This protected method is inherited from I2CE_TemplateMeister->_loadFile()
_loadText()
This protected method is inherited from I2CE_TemplateMeister->_loadText()
raiseError()
This protected method is inherited from I2CE_TemplateMeister->raiseError()
_hasMethod()
This public method is inherited from I2CE_Fuzzy->_hasMethod()
Inherited Variables
$merges
Theis protected variable is inherited from I2CE_MagicDataTemplate->$merges
$doc
Theis public variable is inherited from I2CE_TemplateMeister->$doc
$xpath
Theis protected variable is inherited from I2CE_TemplateMeister->$xpath
$user
Theis protected variable is inherited from I2CE_TemplateMeister->$user
$working_dir
Theis protected variable is inherited from I2CE_TemplateMeister->$working_dir
$loadOptions
Theis protected variable is inherited from I2CE_TemplateMeister->$loadOptions
$headers
Theis protected variable is inherited from I2CE_TemplateMeister->$headers
$verboseErrors
Theis protected variable is inherited from I2CE_TemplateMeister->$verboseErrors
Inherited Fuzzy Methods
processValues_color_triple_hex_single()
This method is inherited from I2CE_MagicDataTemplate->processValues_color_triple_hex_single()
processValues_color_triple_hex_many()
This method is inherited from I2CE_MagicDataTemplate->processValues_color_triple_hex_many()
processValues_color_triple_rgb_single()
This method is inherited from I2CE_MagicDataTemplate->processValues_color_triple_rgb_single()
processValues_color_triple_rgb_many()
This method is inherited from I2CE_MagicDataTemplate->processValues_color_triple_rgb_many()
processValues_color_hex_single()
This method is inherited from I2CE_MagicDataTemplate->processValues_color_hex_single()
processValues_color_hex_many()
This method is inherited from I2CE_MagicDataTemplate->processValues_color_hex_many()
userMessage()
This method is inherited from I2CE_Fuzzy->userMessage()