Class: iHRIS CustomReport Display UserStatistics (4.1.7)
This article describes the class iHRIS_CustomReport_Display_UserStatistics .
- Extends the class: I2CE_CustomReport_Display_Default.
- Location: Part of the module UserStatistics in the package iHRIS Common 4.1.7-release
- Source: Defined in the file modules/UserStatistics/lib/iHRIS_CustomReport_Display_UserStatistics.php on line 34
- Author: Luke Duncan <lduncan@intrahealth.org>
- Since: v4.1
@filesource Class iHRIS_CustomReports_Display_UserStatistics
Variables
$forms
A cache of form objects for displaying the fields.
- Defined in common/modules/UserStatistics/lib/iHRIS_CustomReport_Display_UserStatistics.php on line 39
- Type: protected array $forms
$config
- Defined in common/modules/UserStatistics/lib/iHRIS_CustomReport_Display_UserStatistics.php on line 44
- Type: protected I2CE_MagicDataNode $config
$fieldData
The fields data for this report
- Defined in common/modules/UserStatistics/lib/iHRIS_CustomReport_Display_UserStatistics.php on line 49
- Type: protected array $fieldData
Methods
__construct()
The constructor
- Defined in common/modules/UserStatistics/lib/iHRIS_CustomReport_Display_UserStatistics.php on line 57
- Signature: public function __construct($page,$view)
- Parameters:
_displayReportLimits()
Displays any report limits in the content node
- Defined in common/modules/UserStatistics/lib/iHRIS_CustomReport_Display_UserStatistics.php on line 290
- Signature: protected function _displayReportLimits($contentNode,$rv_config,$report,$limitValues,$excludes,$merge)
- Parameters:
display()
Display the report
- Defined in common/modules/UserStatistics/lib/iHRIS_CustomReport_Display_UserStatistics.php on line 219
- Signature: public function display($contentNode,$processResults,$controls)
- Parameters:
- DOMNode $contentNode
The DOM node we wish to display into. If null, we do not do any of the DOM processing stuff, do not call the report display controls, limits etc. It will however still call processResults with a DOMNode of null - boolean $processResults
Defaults to true meaning we run through the results. If false, we do not process results.- Default Value: true
- mixed $controls
If null (default), we display all the report controsl. If string or an array of string, we only display the indicated controls- Default Value: null
- DOMNode $contentNode
- Returns: boolean.
true on sucess
displayReportControls()
Adds any report display controls that can be added for this view. @param DOMNode $conentNode
- Defined in common/modules/UserStatistics/lib/iHRIS_CustomReport_Display_UserStatistics.php on line 414
- Signature: protected function displayReportControls($contentNode,$controls)
- Parameters:
- $contentNode
- mixed $controls
If null (default), we display all the report controls. If string or an array of string, we only display the indicated controls- Default Value: null
- Returns: boolean
displayUSLimit()
Display the limit for user statistics fields. @param string $fied
- Defined in common/modules/UserStatistics/lib/iHRIS_CustomReport_Display_UserStatistics.php on line 312
- Signature: protected function displayUSLimit($field,$limit,$contentNode,$limitValues,$excludes,$merge)
- Parameters:
getDisplayFieldsData()
Get the data about the fields to be displayed.
- Defined in common/modules/UserStatistics/lib/iHRIS_CustomReport_Display_UserStatistics.php on line 475
- Signature: protected function getDisplayFieldsData()
- Returns: array
getFieldObj()
Return a field object for the given field in the report view with the form field type to create.
- Defined in common/modules/UserStatistics/lib/iHRIS_CustomReport_Display_UserStatistics.php on line 341
- Signature: protected function getFieldObj($name,$formfield)
- Parameters:
- Returns: I2CE_FormField
getPageRoot()
Get the page root to use for this page.
- Defined in common/modules/UserStatistics/lib/iHRIS_CustomReport_Display_UserStatistics.php on line 78
- Signature: protected function getPageRoot()
- Returns: string
getReportViewDisplayedFields()
This method is not need for this extension, but is here to avoid errors if somehow called.
- Defined in common/modules/UserStatistics/lib/iHRIS_CustomReport_Display_UserStatistics.php on line 276
- Signature: protected function getReportViewDisplayedFields($getDisabled,$all_aggregates)
- Parameters:
- Returns: array
getResults()
- Defined in common/modules/UserStatistics/lib/iHRIS_CustomReport_Display_UserStatistics.php on line 88
- Signature: protected function getResults($check_restart)
- Parameters:
- boolean $check_restart
defaults to true in which case if the results are paginated and the offeset is more than the number of results, we restart it setting the page to 1- Default Value: true
- boolean $check_restart
- Returns: mixed
false on failure on succes an array. at index 'results' and MDB2 buffered result object at index 'num_results' the number of results that would be found without the limit
mapResults()
Maps any mapped fields in a results. For UserStatistics this will specially map any of the *_value fields from the result to the 'value' field for display. This will do any appropriate lookups as necessary for mapped values.
- Defined in common/modules/UserStatistics/lib/iHRIS_CustomReport_Display_UserStatistics.php on line 379
- Signature: protected function mapResults($result)
- Parameters:
- MDB2_Row $result
A result row with variables of the form "$field" with unmapped value
- MDB2_Row $result
- Returns: array
the mapped results
processWhere()
Process the fields to make limits based on their limiting values
- Defined in common/modules/UserStatistics/lib/iHRIS_CustomReport_Display_UserStatistics.php on line 485
- Signature: protected function processWhere($limitValues,$report)
- Parameters:
- Returns: string
processWhereByUserStatistics()
Process the where for the field based on the UserStatistics display since this is a special type of field/limit and return the where clause to use for the query.
- Defined in common/modules/UserStatistics/lib/iHRIS_CustomReport_Display_UserStatistics.php on line 522
- Signature: protected function processWhereByUserStatistics($field,$limitStyles)
- Parameters:
- Returns: string
Inherited Methods
canView()
This protected method is inherited from I2CE_CustomReport_Display_Default->canView()
doHeaderRow()
This protected method is inherited from I2CE_CustomReport_Display_Default->doHeaderRow()
doJumper()
This protected method is inherited from I2CE_CustomReport_Display_Default->doJumper()
getJumperQryFields()
This protected method is inherited from I2CE_CustomReport_Display_Default->getJumperQryFields()
noData()
This protected method is inherited from I2CE_CustomReport_Display_Default->noData()
processResultRow()
This protected method is inherited from I2CE_CustomReport_Display_Default->processResultRow()
processResults()
This protected method is inherited from I2CE_CustomReport_Display_Default->processResults()
getReportLimitsDescription()
This public method is inherited from I2CE_CustomReport_Display->getReportLimitsDescription()
saveDefaultView()
This public method is inherited from I2CE_CustomReport_Display->saveDefaultView()
saveDisplayOptions()
This public method is inherited from I2CE_CustomReport_Display->saveDisplayOptions()
unsetPaging()
This public method is inherited from I2CE_CustomReport_Display->unsetPaging()
_displayReportFormLimit()
This protected method is inherited from I2CE_CustomReport_Display->_displayReportFormLimit()
_displayReportFunctionLimit()
This protected method is inherited from I2CE_CustomReport_Display->_displayReportFunctionLimit()
_displayReportInternalLimit()
This protected method is inherited from I2CE_CustomReport_Display->_displayReportInternalLimit()
_getMergedReportData()
This protected method is inherited from I2CE_CustomReport_Display->_getMergedReportData()
_getPivots()
This protected method is inherited from I2CE_CustomReport_Display->_getPivots()
_getReportViewDisplayedFieldsWalker()
This protected method is inherited from I2CE_CustomReport_Display->_getReportViewDisplayedFieldsWalker()
displayMetaInfo()
This protected method is inherited from I2CE_CustomReport_Display->displayMetaInfo()
displayReportControl()
This protected method is inherited from I2CE_CustomReport_Display->displayReportControl()
displayReportLimit()
This protected method is inherited from I2CE_CustomReport_Display->displayReportLimit()
displayReportLimits()
This protected method is inherited from I2CE_CustomReport_Display->displayReportLimits()
findNumericFields()
This protected method is inherited from I2CE_CustomReport_Display->findNumericFields()
getBasePage()
This protected method is inherited from I2CE_CustomReport_Display->getBasePage()
getDefaultOptions()
This protected method is inherited from I2CE_CustomReport_Display->getDefaultOptions()
getFormFieldObjects()
This protected method is inherited from I2CE_CustomReport_Display->getFormFieldObjects()
getMappedValue()
This protected method is inherited from I2CE_CustomReport_Display->getMappedValue()
getMergedReportJoins()
This protected method is inherited from I2CE_CustomReport_Display->getMergedReportJoins()
getModuleLimits()
This protected method is inherited from I2CE_CustomReport_Display->getModuleLimits()
getPivots()
This protected method is inherited from I2CE_CustomReport_Display->getPivots()
getReportPrefix()
This protected method is inherited from I2CE_CustomReport_Display->getReportPrefix()
getReportViewsFactory()
This protected method is inherited from I2CE_CustomReport_Display->getReportViewsFactory()
getSwissReport()
This protected method is inherited from I2CE_CustomReport_Display->getSwissReport()
getSwissReportFunction()
This protected method is inherited from I2CE_CustomReport_Display->getSwissReportFunction()
getSwissReportInternal()
This protected method is inherited from I2CE_CustomReport_Display->getSwissReportInternal()
getSwissReportView()
This protected method is inherited from I2CE_CustomReport_Display->getSwissReportView()
isMapped()
This protected method is inherited from I2CE_CustomReport_Display->isMapped()
mapReportFormField()
This protected method is inherited from I2CE_CustomReport_Display->mapReportFormField()
mergeOn_child()
This protected method is inherited from I2CE_CustomReport_Display->mergeOn_child()
mergeOn_child_field()
This protected method is inherited from I2CE_CustomReport_Display->mergeOn_child_field()
mergeOn_parent()
This protected method is inherited from I2CE_CustomReport_Display->mergeOn_parent()
mergeOn_parent_field()
This protected method is inherited from I2CE_CustomReport_Display->mergeOn_parent_field()
processWhereByField()
This protected method is inherited from I2CE_CustomReport_Display->processWhereByField()
processWhereByFunction()
This protected method is inherited from I2CE_CustomReport_Display->processWhereByFunction()
processWhereByInternal()
This protected method is inherited from I2CE_CustomReport_Display->processWhereByInternal()
setupMappedValues()
This protected method is inherited from I2CE_CustomReport_Display->setupMappedValues()
validateSortFields()
This protected method is inherited from I2CE_CustomReport_Display->validateSortFields()
_hasMethod()
This public method is inherited from I2CE_Fuzzy->_hasMethod()
Inherited Variables
$formfields
Theis protected variable is inherited from I2CE_CustomReport_Display_Default->$formfields
$formObjs
Theis protected variable is inherited from I2CE_CustomReport_Display->$formObjs
$mappedFields
Theis protected variable is inherited from I2CE_CustomReport_Display->$mappedFields
$formMaps
Theis protected variable is inherited from I2CE_CustomReport_Display->$formMaps
$fieldMaps
Theis protected variable is inherited from I2CE_CustomReport_Display->$fieldMaps
$mappedValues
Theis protected variable is inherited from I2CE_CustomReport_Display->$mappedValues
$display
Theis protected variable is inherited from I2CE_CustomReport_Display->$display
$reportObj
Theis protected variable is inherited from I2CE_CustomReport_Display->$reportObj
$limitDescText
Theis protected variable is inherited from I2CE_CustomReport_Display->$limitDescText
$limitModules
Theis protected variable is inherited from I2CE_CustomReport_Display->$limitModules
$defaultOptions
Theis protected variable is inherited from I2CE_CustomReport_Display->$defaultOptions
$view
Theis protected variable is inherited from I2CE_CustomReport_Display->$view
$page
Theis protected variable is inherited from I2CE_CustomReport_Display->$page
$template
Theis protected variable is inherited from I2CE_CustomReport_Display->$template
$displayConfig
Theis protected variable is inherited from I2CE_CustomReport_Display->$displayConfig
$config
Theis protected variable is inherited from I2CE_CustomReport_Display->$config
$reportConfig
Theis protected variable is inherited from I2CE_CustomReport_Display->$reportConfig
$relationshipConfig
Theis protected variable is inherited from I2CE_CustomReport_Display->$relationshipConfig
$numeric
Theis protected variable is inherited from I2CE_CustomReport_Display->$numeric
$seen_merges
Theis protected variable is inherited from I2CE_CustomReport_Display->$seen_merges
$row_start
Theis protected variable is inherited from I2CE_CustomReport_Display->$row_start
$row_amount
Theis protected variable is inherited from I2CE_CustomReport_Display->$row_amount
$relationships
Theis protected variable is inherited from I2CE_CustomReport_Display->$relationships
$reportViewsFactory
Theis protected variable is inherited from I2CE_CustomReport_Display->$reportViewsFactory
$displayed_limits
Theis protected variable is inherited from I2CE_CustomReport_Display->$displayed_limits
$displayedFields
Theis protected variable is inherited from I2CE_CustomReport_Display->$displayedFields
Inherited Fuzzy Methods
userMessage()
This method is inherited from I2CE_Fuzzy->userMessage()