Class: I2CE CustomReport Display (Development): Difference between revisions
(Created page with '{{otherversions|Class: I2CE_CustomReport_Display}} This article describes the ''abstract'' class ''I2CE_CustomReport_Display'' . *Extends the class: [[Class: I2CE_Fuzzy (Developm…') |
No edit summary |
||
Line 90: | Line 90: | ||
===$row_start=== | ===$row_start=== | ||
The starting row (if any) for limiting the results. If not used, it is false mixed $row_start | The starting row (if any) for limiting the results. If not used, it is false mixed $row_start | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L434 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 434 | ||
*Type: protected procted $row_start | *Type: protected procted $row_start | ||
===$row_amount=== | ===$row_amount=== | ||
The number of rows (if any) for limiting the results. If not used, it is false mixed $row_amount | The number of rows (if any) for limiting the results. If not used, it is false mixed $row_amount | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L439 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 439 | ||
*Type: protected procted $row_amount | *Type: protected procted $row_amount | ||
===$reportViewsFactory=== | ===$reportViewsFactory=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L962 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 962 | ||
*Type: protected $reportViewsFactory | *Type: protected $reportViewsFactory | ||
===$displayedFields=== | ===$displayedFields=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L1351 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 1351 | ||
*Type: private $displayedFields | *Type: private $displayedFields | ||
Line 121: | Line 121: | ||
===display()=== | ===display()=== | ||
Display the report | Display the report | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L1186 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 1186 | ||
*Signature: public function display($contentNode,$processResults,$controls) | *Signature: public function display($contentNode,$processResults,$controls) | ||
*Parameters: | *Parameters: | ||
Line 131: | Line 131: | ||
*Returns: boolean.<br/>true on sucess | *Returns: boolean.<br/>true on sucess | ||
===displayMetaInfo()=== | ===displayMetaInfo()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L1284 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 1284 | ||
*Signature: protected function displayMetaInfo($contentNode) | *Signature: protected function displayMetaInfo($contentNode) | ||
*Parameters: | *Parameters: | ||
Line 137: | Line 137: | ||
===displayReportControl()=== | ===displayReportControl()=== | ||
Adds any controls for this display to the content node | Adds any controls for this display to the content node | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L927 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 927 | ||
*Signature: protected function displayReportControl($contentNode) | *Signature: protected function displayReportControl($contentNode) | ||
*Parameters: | *Parameters: | ||
Line 143: | Line 143: | ||
===displayReportControls()=== | ===displayReportControls()=== | ||
Adds any report display controls that can be added for this view. @param DOMNode $conentNode | Adds any report display controls that can be added for this view. @param DOMNode $conentNode | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L867 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 867 | ||
*Signature: protected function displayReportControls($contentNode,$controls) | *Signature: protected function displayReportControls($contentNode,$controls) | ||
*Parameters: | *Parameters: | ||
Line 152: | Line 152: | ||
===displayReportLimit()=== | ===displayReportLimit()=== | ||
Adds the report limit node to its content node @param DOMNode $limitnode | Adds the report limit node to its content node @param DOMNode $limitnode | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L1135 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 1135 | ||
*Signature: protected function displayReportLimit($contentNode,$limitNode,$limitConfig) | *Signature: protected function displayReportLimit($contentNode,$limitNode,$limitConfig) | ||
*Parameters: | *Parameters: | ||
Line 160: | Line 160: | ||
===displayReportLimits()=== | ===displayReportLimits()=== | ||
Displays any report limits in the content node | Displays any report limits in the content node | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L1028 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 1028 | ||
*Signature: protected function displayReportLimits($contentNode) | *Signature: protected function displayReportLimits($contentNode) | ||
*Parameters: | *Parameters: | ||
Line 173: | Line 173: | ||
*Returns: @array.<br/>Keys are report for fields and values are the data associate defined in getDisplayedFields() | *Returns: @array.<br/>Keys are report for fields and values are the data associate defined in getDisplayedFields() | ||
===getBasePage()=== | ===getBasePage()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L913 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 913 | ||
*Signature: protected function getBasePage() | *Signature: protected function getBasePage() | ||
===getDefaultOptions()=== | ===getDefaultOptions()=== | ||
returns an array of the default display options. Default options are read and overriddenb in the following order: /modules/CustomReports/displays/$display/display_options /modules/CustomReports/relationships/display_options/$display /modules/CustomReports/reports/display_options/$display /modules/CustomReports/reportViews/$view/display_options/$display Finally any options that have a key in $get are replaced by that value | returns an array of the default display options. Default options are read and overriddenb in the following order: /modules/CustomReports/displays/$display/display_options /modules/CustomReports/relationships/display_options/$display /modules/CustomReports/reports/display_options/$display /modules/CustomReports/reportViews/$view/display_options/$display Finally any options that have a key in $get are replaced by that value | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L813 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 813 | ||
*Signature: protected function getDefaultOptions($get,$options) | *Signature: protected function getDefaultOptions($get,$options) | ||
*Parameters: | *Parameters: | ||
Line 186: | Line 186: | ||
===getDisplayFieldsData()=== | ===getDisplayFieldsData()=== | ||
Gets the data about the fields we are going to display. | Gets the data about the fields we are going to display. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L1359 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 1359 | ||
*Signature: protected function getDisplayFieldsData() | *Signature: protected function getDisplayFieldsData() | ||
===getFormFieldObjects()=== | ===getFormFieldObjects()=== | ||
Get the form and field objects associated to a formfield string. | Get the form and field objects associated to a formfield string. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L631 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 631 | ||
*Signature: protected function getFormFieldObjects($reportformfield,$isReportForm) | *Signature: protected function getFormFieldObjects($reportformfield,$isReportForm) | ||
*Parameters: | *Parameters: | ||
Line 199: | Line 199: | ||
===getMappedValue()=== | ===getMappedValue()=== | ||
Gets the mapped value for a report form field. | Gets the mapped value for a report form field. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L463 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 463 | ||
*Signature: protected function getMappedValue($reportformfield,$value,$isReportForm) | *Signature: protected function getMappedValue($reportformfield,$value,$isReportForm) | ||
*Parameters: | *Parameters: | ||
Line 209: | Line 209: | ||
===getReportViewDisplayedFields()=== | ===getReportViewDisplayedFields()=== | ||
Returns an array in (default display order) with keys reportformfields and values an array with indices 'header', 'link' The value of 'header' is the display header for this field The value of 'link' is false if there is no linked page associtated to this field or a string if there is. @param Mixed $all_aggerates Defaults to false. If true we include all information about aggregate and non-agregate versions of the fields. otherwise it can be an array of aggregate information that we want | Returns an array in (default display order) with keys reportformfields and values an array with indices 'header', 'link' The value of 'header' is the display header for this field The value of 'link' is false if there is no linked page associtated to this field or a string if there is. @param Mixed $all_aggerates Defaults to false. If true we include all information about aggregate and non-agregate versions of the fields. otherwise it can be an array of aggregate information that we want | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L1412 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 1412 | ||
*Signature: protected function getReportViewDisplayedFields($getDisabled,$all_aggregates) | *Signature: protected function getReportViewDisplayedFields($getDisabled,$all_aggregates) | ||
*Parameters: | *Parameters: | ||
Line 218: | Line 218: | ||
*Returns: array; | *Returns: array; | ||
===getReportViewsFactory()=== | ===getReportViewsFactory()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L963 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 963 | ||
*Signature: protected function getReportViewsFactory() | *Signature: protected function getReportViewsFactory() | ||
===getResults()=== | ===getResults()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L232 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 232 | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L232 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 232 | ||
*Signature: protected function getResults() | *Signature: protected function getResults($check_restart) | ||
*Parameters: | |||
** [http://www.php.net/manual/en/language.types.boolean.php boolean ] $check_restart <br/>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 | |||
*Returns: [http://www.php.net/manual/en/language.pseudo-types.php mixed ]<br/>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 | *Returns: [http://www.php.net/manual/en/language.pseudo-types.php mixed ]<br/>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 | ||
===getSwissReport()=== | ===getSwissReport()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L1001 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 1001 | ||
*Signature: protected function getSwissReport() | *Signature: protected function getSwissReport() | ||
===getSwissReportFunction()=== | ===getSwissReportFunction()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L1010 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 1010 | ||
*Signature: protected function getSwissReportFunction($func) | *Signature: protected function getSwissReportFunction($func) | ||
*Parameters: | *Parameters: | ||
**$func | **$func | ||
===getSwissReportView()=== | ===getSwissReportView()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L993 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 993 | ||
*Signature: protected function getSwissReportView() | *Signature: protected function getSwissReportView() | ||
===isMapped()=== | ===isMapped()=== | ||
Checks to see if a form field is mapped | Checks to see if a form field is mapped | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L571 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 571 | ||
*Signature: protected function isMapped($reportformfield) | *Signature: protected function isMapped($reportformfield) | ||
*Parameters: | *Parameters: | ||
Line 244: | Line 246: | ||
===mapReportFormField()=== | ===mapReportFormField()=== | ||
Sets the maps | Sets the maps | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L592 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 592 | ||
*Signature: protected function mapReportFormField($reportformfield) | *Signature: protected function mapReportFormField($reportformfield) | ||
*Parameters: | *Parameters: | ||
Line 250: | Line 252: | ||
===mapResults()=== | ===mapResults()=== | ||
Maps any mapped fields in a results. | Maps any mapped fields in a results. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L446 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 446 | ||
*Signature: protected function mapResults($result) | *Signature: protected function mapResults($result) | ||
*Parameters: | *Parameters: | ||
Line 257: | Line 259: | ||
===processResultRow()=== | ===processResultRow()=== | ||
Process a result row. | Process a result row. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L1279 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 1279 | ||
*Signature: protected function processResultRow($row,$row_num,$contentNode) | *Signature: protected function processResultRow($row,$row_num,$contentNode) | ||
*Parameters: | *Parameters: | ||
Line 267: | Line 269: | ||
===processResults()=== | ===processResults()=== | ||
Process results | Process results | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L1245 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 1245 | ||
*Signature: protected function processResults($results_data,$contentNode) | *Signature: protected function processResults($results_data,$contentNode) | ||
*Parameters: | *Parameters: | ||
Line 275: | Line 277: | ||
===processWhere()=== | ===processWhere()=== | ||
Process the fields to make limits based on their limiting values @param array $limits an array defining limiting values for particular fields | Process the fields to make limits based on their limiting values @param array $limits an array defining limiting values for particular fields | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L672 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 672 | ||
*Signature: protected function processWhere($limitValues) | *Signature: protected function processWhere($limitValues) | ||
*Parameters: | *Parameters: | ||
Line 281: | Line 283: | ||
*Returns: [http://www.php.net/manual/en/language.types.string.php string ] | *Returns: [http://www.php.net/manual/en/language.types.string.php string ] | ||
===processWhereByField()=== | ===processWhereByField()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L719 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 719 | ||
*Signature: protected function processWhereByField($form,$field,$formObj,$limitStyles) | *Signature: protected function processWhereByField($form,$field,$formObj,$limitStyles) | ||
*Parameters: | *Parameters: | ||
Line 289: | Line 291: | ||
** [http://www.php.net/manual/en/language.types.array.php array ] $limitStyles <br/>the limit values for this formfield indexed by limit type | ** [http://www.php.net/manual/en/language.types.array.php array ] $limitStyles <br/>the limit values for this formfield indexed by limit type | ||
===processWhereByFunction()=== | ===processWhereByFunction()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L757 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 757 | ||
*Signature: protected function processWhereByFunction($function,$limitStyles) | *Signature: protected function processWhereByFunction($function,$limitStyles) | ||
*Parameters: | *Parameters: | ||
Line 295: | Line 297: | ||
** [http://www.php.net/manual/en/language.types.array.php array ] $limitStyles <br/>the limit values for this formfield indexed by limit type | ** [http://www.php.net/manual/en/language.types.array.php array ] $limitStyles <br/>the limit values for this formfield indexed by limit type | ||
===saveDefaultView()=== | ===saveDefaultView()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L1153 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 1153 | ||
*Signature: public function saveDefaultView() | *Signature: public function saveDefaultView() | ||
===saveDisplayOptions()=== | ===saveDisplayOptions()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L1168 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 1168 | ||
*Signature: public function saveDisplayOptions() | *Signature: public function saveDisplayOptions() | ||
===setupMappedValues()=== | ===setupMappedValues()=== | ||
Stores the array of mapped value for a formfield in {@var $formfield} @parmam boolean $isReportForm Defaults to true. If true we a sending a report form field If false, we are working with a form field. | Stores the array of mapped value for a formfield in {@var $formfield} @parmam boolean $isReportForm Defaults to true. If true we a sending a report form field If false, we are working with a form field. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php# | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/CustomReports/lib/I2CE_CustomReport_Display.php#L534 i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php] on line 534 | ||
*Signature: protected function setupMappedValues($reportformfield,$isReportForm) | *Signature: protected function setupMappedValues($reportformfield,$isReportForm) | ||
*Parameters: | *Parameters: |
Latest revision as of 07:55, 3 August 2010
This article describes the abstract class I2CE_CustomReport_Display .
- Extends the class: I2CE_Fuzzy.
- Child Classes:
- Location: Part of the module CustomReports in the package I2CE 4.0-dev
- Source: Defined in the file modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 29
- Author: Carl Leitner <litlfred@ibiblio.org>
I2CE_CustomReport_Display
Variables
$formObjs
an array indexed by forms
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 35
- Type: protected array $formObjs
$mappedFields
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 41
- Type: protected $mappedFields
$formMaps
An array where keys are of the "$reportform(+field(+$aggregate))" and the values are the corresponding "$form+$field" (that is the real form for the later) @var protected array $maps
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 47
- Type: protected $formMaps
$fieldMaps
An array where keys are of the "$reportform(+field(+$aggregate))" and the values are the corresponding "$form+$field" (that is the real form for the later)
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 52
- Type: protected array $fieldMaps
$mappedValues
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 57
- Type: protected $mappedValues
$display
The shortname for the display. E.g. 'Default'
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 63
- Type: protected string $display
$reportObj
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 68
- Type: protected I2CE_CustomReport $reportObj
$defaultOptions
The options for this display
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 128
- Type: protected $defaultOptions
$view
the view we are displaying
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 133
- Type: protected string $view
$page
The page we are displaying on
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 138
- Type: protected I2CE_Page $page
$template
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 142
- Type: protected I2CE_TemplateMeister $template
$displayConfig
The magic data node which holds the information about the display that is being used
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 149
- Type: protected I2CE_MagicDataNode $displayConfig
$config
The magic data node which holds the information about this view
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 155
- Type: protected I2CE_MagicDataNode $config
$reportConfig
The magic data node which holds the information about the report this view referes to
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 160
- Type: protected I2CE_MagicDataNode $reportConfig
$relationshipConfig
The magic data node which holds the information about the relationship this view refers to
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 166
- Type: protected I2CE_MagicDataNode $relationshipConfig
$numeric
array with keys the 'reportformfields' and values the data associated to it. these fields are those we assume have a numeric representation
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 182
- Type: protected array $numeric
$row_start
The starting row (if any) for limiting the results. If not used, it is false mixed $row_start
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 434
- Type: protected procted $row_start
$row_amount
The number of rows (if any) for limiting the results. If not used, it is false mixed $row_amount
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 439
- Type: protected procted $row_amount
$reportViewsFactory
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 962
- Type: protected $reportViewsFactory
$displayedFields
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 1351
- Type: private $displayedFields
Methods
__construct()
The constuctor
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 76
- Signature: public function __construct($page,$view)
- Parameters:
canView()
Abstract method that each display is resposbile for implementing. Checks to see if it can display the given view.
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 173
- Signature: abstract protected function canView()
- Returns: boolean
display()
Display the report
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 1186
- 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
displayMetaInfo()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 1284
- Signature: protected function displayMetaInfo($contentNode)
- Parameters:
- $contentNode
displayReportControl()
Adds any controls for this display to the content node
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 927
- Signature: protected function displayReportControl($contentNode)
- Parameters:
- DOMNode $contentNode
displayReportControls()
Adds any report display controls that can be added for this view. @param DOMNode $conentNode
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 867
- Signature: protected function displayReportControls($contentNode,$controls)
- Parameters:
- $contentNode
- 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
- Returns: boolean
$true on success
displayReportLimit()
Adds the report limit node to its content node @param DOMNode $limitnode
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 1135
- Signature: protected function displayReportLimit($contentNode,$limitNode,$limitConfig)
- Parameters:
- DOMNode $contentNode
- $limitNode
- I2CE_MagicDataNode $limitConfig
displayReportLimits()
Displays any report limits in the content node
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 1028
- Signature: protected function displayReportLimits($contentNode)
- Parameters:
- DOMNode $contentNode
findNumericFields()
Find the numeric fields. Returns it (and stores in in the variable $this->numeric)
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 190
- Signature: protected function findNumericFields($disabled)
- Parameters:
- $disabled
- Default Value: false
- $disabled
- Returns: @array.
Keys are report for fields and values are the data associate defined in getDisplayedFields()
getBasePage()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 913
- Signature: protected function getBasePage()
getDefaultOptions()
returns an array of the default display options. Default options are read and overriddenb in the following order: /modules/CustomReports/displays/$display/display_options /modules/CustomReports/relationships/display_options/$display /modules/CustomReports/reports/display_options/$display /modules/CustomReports/reportViews/$view/display_options/$display Finally any options that have a key in $get are replaced by that value
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 813
- Signature: protected function getDefaultOptions($get,$options)
- Parameters:
- Returns: mixed
array or false on failure
getDisplayFieldsData()
Gets the data about the fields we are going to display.
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 1359
- Signature: protected function getDisplayFieldsData()
getFormFieldObjects()
Get the form and field objects associated to a formfield string.
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 631
- Signature: protected function getFormFieldObjects($reportformfield,$isReportForm)
- Parameters:
- string $reportformfield
of the re[prt form "$form" "$form+$field" or "$form+$field+$aggregate" @parmam boolean $isReportForm Defaults to true. If true we a sending a report form field If false, we are working with a form field. - $isReportForm
- Default Value: true
- string $reportformfield
- Returns: array.
Index 0 is an I2CE_Form (on success, false on failure), Index 1 is an I2CE_FormField on succces, false on failure
getMappedValue()
Gets the mapped value for a report form field.
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 463
- Signature: protected function getMappedValue($reportformfield,$value,$isReportForm)
- Parameters:
- string $reportformfield
or a report form field or a form field of the form "$reportform+$field" or "$reportform+$field+$aggreate" or "$form+field" @param value @parmam boolean $isReportForm Defaults to true. If true we a sending a report form field If false, we are working with a form field. - $value
- $isReportForm
- Default Value: true
- string $reportformfield
- Returns: string
the origina value of on failure, the mapped value on success
getReportViewDisplayedFields()
Returns an array in (default display order) with keys reportformfields and values an array with indices 'header', 'link' The value of 'header' is the display header for this field The value of 'link' is false if there is no linked page associtated to this field or a string if there is. @param Mixed $all_aggerates Defaults to false. If true we include all information about aggregate and non-agregate versions of the fields. otherwise it can be an array of aggregate information that we want
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 1412
- Signature: protected function getReportViewDisplayedFields($getDisabled,$all_aggregates)
- Parameters:
- boolean $getDisabled
Defaults to false;- Default Value: false
- $all_aggregates
- Default Value: false
- boolean $getDisabled
- Returns: array;
getReportViewsFactory()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 963
- Signature: protected function getReportViewsFactory()
getResults()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 232
- 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
getSwissReport()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 1001
- Signature: protected function getSwissReport()
getSwissReportFunction()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 1010
- Signature: protected function getSwissReportFunction($func)
- Parameters:
- $func
getSwissReportView()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 993
- Signature: protected function getSwissReportView()
isMapped()
Checks to see if a form field is mapped
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 571
- Signature: protected function isMapped($reportformfield)
- Parameters:
- string $reportformfield
of the form "$reportform+$fiedld(+$aggregate)"
- string $reportformfield
mapReportFormField()
Sets the maps
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 592
- Signature: protected function mapReportFormField($reportformfield)
- Parameters:
- string $reportformfield
mapResults()
Maps any mapped fields in a results.
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 446
- Signature: protected function mapResults($result)
- Parameters:
- array $result
A an array with inicies of the form "$reportform+$field(+$aggregate)" with unmapped value
- array $result
- Returns: array
the mapped results
processResultRow()
Process a result row.
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 1279
- Signature: protected function processResultRow($row,$row_num,$contentNode)
- Parameters:
- Returns: boolean.
True on success
processResults()
Process results
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 1245
- Signature: protected function processResults($results_data,$contentNode)
- Parameters:
processWhere()
Process the fields to make limits based on their limiting values @param array $limits an array defining limiting values for particular fields
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 672
- Signature: protected function processWhere($limitValues)
- Parameters:
- $limitValues
- Returns: string
processWhereByField()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 719
- Signature: protected function processWhereByField($form,$field,$formObj,$limitStyles)
- Parameters:
processWhereByFunction()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 757
- Signature: protected function processWhereByFunction($function,$limitStyles)
- Parameters:
saveDefaultView()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 1153
- Signature: public function saveDefaultView()
saveDisplayOptions()
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 1168
- Signature: public function saveDisplayOptions()
setupMappedValues()
Stores the array of mapped value for a formfield in {@var $formfield} @parmam boolean $isReportForm Defaults to true. If true we a sending a report form field If false, we are working with a form field.
- Defined in i2ce/modules/CustomReports/lib/I2CE_CustomReport_Display.php on line 534
- Signature: protected function setupMappedValues($reportformfield,$isReportForm)
- Parameters:
- string $reportformfield
- $isReportForm
- Default Value: true
Inherited Methods
_hasMethod()
This public method is inherited from I2CE_Fuzzy->_hasMethod()
Inherited Fuzzy Methods
userMessage()
This method is inherited from I2CE_Fuzzy->userMessage()