Class: I2CE Template Options: Difference between revisions

From IHRIS Wiki
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
This article describes the class ''I2CE_Template_Options''.
#REDIRECT [[Class: I2CE_Template_Options (4.1.7)]]
*Extends the class: [[Class: I2CE_Module | I2CE_Module]].
*Parent Classses:  [[Class: I2CE_Module | I2CE_Module]] [[Class: I2CE_Fuzzy | I2CE_Fuzzy]]
*Location: Part of the module [[I2CE Module List#Options|Options]] 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/TemplateData/modules/Options/I2CE_Template_Options.php modules/TemplateData/modules/Options/I2CE_Template_Options.php]
*Author: Carl Leitner <litlfred@ibiblio.org>
I2CE_Template_Options   @todo Better Documentation
==Methods==
===addOption()===
Add option elements to the select node with the given id attribute.
*Signature: public function addOption($template,$selectID,$id,$value,$node)
*Parameters:
**$template
** [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $selectID <br/>a string, the node id, or a DOMNode
** [http://www.php.net/manual/en/language.types.string.php string ] $id <br/>The code that will be the submitted value of the form element if selected.
** [http://www.php.net/manual/en/language.types.string.php string ] $value <br/>The display text that will be seen on the page.
** [http://www.php.net/manual/en/class.domnode.php DOMNode ] $node
***Default Value: null
===addOptions()===
Add options elements to the select node with the given id attribute.
*Signature: public function addOptions($template,$selectID,$options,$value,$node)
*Parameters:
**$template
** [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $selectID <br/>a string, the node id, or a DOMNode
** [http://www.php.net/manual/en/language.types.array.php array ] $options <br/>An array where key will be the select id and values will be the select value.
** [http://www.php.net/manual/en/language.types.string.php string ] $value <br/>The display text that will be seen on the page.
**$node
***Default Value: null
===getHooks()===
*Signature: static public function getHooks()
===getMethods()===
*Signature: static public function getMethods()
===processOptions()===
*Signature: public function processOptions($page)
*Parameters:
**$page
 
 
[[Category:Class Documentation]]

Latest revision as of 09:52, 23 August 2013