Class: I2CE Module MenuSelect: Difference between revisions
From IHRIS Wiki
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
*Extends the class: [[Class: I2CE_Module | I2CE_Module]]. | *Extends the class: [[Class: I2CE_Module | I2CE_Module]]. | ||
*Parent Classses: [[Class: I2CE_Module | I2CE_Module]] [[Class: I2CE_Fuzzy | I2CE_Fuzzy]] | *Parent Classses: [[Class: I2CE_Module | I2CE_Module]] [[Class: I2CE_Fuzzy | I2CE_Fuzzy]] | ||
*Location: Part of the module [[ | *Location: Part of the module [[I2CE Module List#MooTools|MooTools]] in the package [https://launchpad.net/i2ce I2CE] | ||
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.0-release/annotate/head:/modules/MooTools/modules/MenuSelect/I2CE_Module_MenuSelect.php modules/MooTools/modules/MenuSelect/I2CE_Module_MenuSelect.php] | *Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.0-release/annotate/head:/modules/MooTools/modules/MenuSelect/I2CE_Module_MenuSelect.php modules/MooTools/modules/MenuSelect/I2CE_Module_MenuSelect.php] | ||
*Author: Carl Leitner <litlfred@ibiblio.org> | *Author: Carl Leitner <litlfred@ibiblio.org> | ||
Line 24: | Line 24: | ||
**$parent_id | **$parent_id | ||
**$option_list | **$option_list | ||
[[Category:Class Documentation]] | [[Category:Class Documentation]] |
Revision as of 13:10, 19 October 2009
This article describes the class I2CE_Module_MenuSelect.
- Extends the class: I2CE_Module.
- Parent Classses: I2CE_Module I2CE_Fuzzy
- Location: Part of the module MooTools in the package I2CE
- Source: Defined in the file modules/MooTools/modules/MenuSelect/I2CE_Module_MenuSelect.php
- Author: Carl Leitner <litlfred@ibiblio.org>
I2CE_Module_MenuSelect
Methods
addUpdateSelect()
Adds a javascripy select_update object for the named select.
- Signature: public function addUpdateSelect($template,$select_id,$options)
- Parameters:
getMethods()
- Signature: static public function getMethods()
Adds a 'menuSelect'. A menu select is a pair of selects. The parent and the child. When a parent is selected, we update the child select. Can be called on either a page or a template. $param string $parent_id the $id of the select parent select. $param array $option_list the keys are the value of each of the options for the parent select. the value is itself an array. this array has keys the value to be used for the child select and values are the text to be displayed.
- Signature: public function menuSelect($template,$parent_id,$option_list)
- Parameters:
- $template
- $parent_id
- $option_list