Class: I2CE Template Options: Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
Line 14: Line 14:
*Signature: public function addOption($template,$selectID,$id,$value,$node)
*Signature: public function addOption($template,$selectID,$id,$value,$node)
*Parameters:
*Parameters:
*$template  
**$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.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 ] $id <br/>The code that will be the submitted value of the form element if selected.
Line 24: Line 24:
*Signature: public function addOptions($template,$selectID,$options,$value,$node)
*Signature: public function addOptions($template,$selectID,$options,$value,$node)
*Parameters:
*Parameters:
*$template  
**$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.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.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.
** [http://www.php.net/manual/en/language.types.string.php string ] $value <br/>The display text that will be seen on the page.
*$node  
**$node  
***Default Value: null
***Default Value: null
===getHooks()===
===getHooks()===
Line 37: Line 37:
*Signature: public function processOptions($page)
*Signature: public function processOptions($page)
*Parameters:
*Parameters:
*$page  
**$page  


==Inherited Fuzzy Methods==
==Inherited Fuzzy Methods==
Line 63: Line 63:
*Signature: public function addOption($template,$selectID,$id,$value,$node)
*Signature: public function addOption($template,$selectID,$id,$value,$node)
*Parameters:
*Parameters:
*$template  
**$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.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 ] $id <br/>The code that will be the submitted value of the form element if selected.
Line 73: Line 73:
*Signature: public function addOptions($template,$selectID,$options,$value,$node)
*Signature: public function addOptions($template,$selectID,$options,$value,$node)
*Parameters:
*Parameters:
*$template  
**$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.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.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.
** [http://www.php.net/manual/en/language.types.string.php string ] $value <br/>The display text that will be seen on the page.
*$node  
**$node  
***Default Value: null
***Default Value: null
===getHooks()===
===getHooks()===
Line 86: Line 86:
*Signature: public function processOptions($page)
*Signature: public function processOptions($page)
*Parameters:
*Parameters:
*$page  
**$page  


==Inherited Fuzzy Methods==
==Inherited Fuzzy Methods==

Revision as of 13:08, 17 October 2009

The class I2CE_Template_Options contains 2 definitions:

modules/TemplateData/modules/Options/I2CE_Template_Options.php

This article desrcibes the class I2CE_Template_Options.

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
    • mixed $selectID
      a string, the node id, or a DOMNode
    • string $id
      The code that will be the submitted value of the form element if selected.
    • string $value
      The display text that will be seen on the page.
    • 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
    • mixed $selectID
      a string, the node id, or a DOMNode
    • array $options
      An array where key will be the select id and values will be the select value.
    • string $value
      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

Inherited Fuzzy Methods

launchBackgroundProcess()

This method is inherited from I2CE_Module->launchBackgroundProcess()

launchBackgroundPHPScript()

This method is inherited from I2CE_Module->launchBackgroundPHPScript()

launchBackgroundPage()

This method is inherited from I2CE_Module->launchBackgroundPage()

userMessage()

This method is inherited from I2CE_Fuzzy->userMessage()

modules/TemplateData/modules/Options/I2CE_Template_Options.php

This article desrcibes the class I2CE_Template_Options.

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
    • mixed $selectID
      a string, the node id, or a DOMNode
    • string $id
      The code that will be the submitted value of the form element if selected.
    • string $value
      The display text that will be seen on the page.
    • 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
    • mixed $selectID
      a string, the node id, or a DOMNode
    • array $options
      An array where key will be the select id and values will be the select value.
    • string $value
      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

Inherited Fuzzy Methods

launchBackgroundProcess()

This method is inherited from I2CE_Module->launchBackgroundProcess()

launchBackgroundPHPScript()

This method is inherited from I2CE_Module->launchBackgroundPHPScript()

launchBackgroundPage()

This method is inherited from I2CE_Module->launchBackgroundPage()

userMessage()

This method is inherited from I2CE_Fuzzy->userMessage()