Class: I2CE Stub (Development): Difference between revisions
(Created page with '{{otherversions|Class: I2CE_Stub}} This article describes the class ''I2CE_Stub'' . *Extends the class: I2CE_Module. *Location: Part of the…') |
No edit summary |
||
Line 2: | Line 2: | ||
This article describes the class ''I2CE_Stub'' . | This article describes the class ''I2CE_Stub'' . | ||
*Extends the class: [[Class: I2CE_Module (Development) | I2CE_Module]]. | *Extends the class: [[Class: I2CE_Module (Development) | I2CE_Module]]. | ||
*Location: Part of the module [[I2CE Module List (Development)#stub|stub]] in the package [https://launchpad.net/i2ce I2CE] 4. | *Location: Part of the module [[I2CE Module List (Development)#stub|stub]] in the package [https://launchpad.net/i2ce I2CE] 4.1-dev | ||
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4. | *Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L29 modules/Pages/modules/Stub/I2CE_Stub.php] on line 29 | ||
*Author: Carl Leitner <litlfred@ibiblio.org> | *Author: Carl Leitner <litlfred@ibiblio.org> | ||
I2CE_Stub | I2CE_Stub | ||
==Methods== | ==Methods== | ||
===__construct()=== | ===__construct()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4. | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L63 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 63 | ||
*Signature: public function __construct() | *Signature: public function __construct() | ||
===addAjaxCompleteFunction()=== | ===addAjaxCompleteFunction()=== | ||
This fuzzy method takes two arguments. The first arguement is the id of a tag for which there is an event given by addAjaxUpdate. The second argument is a javascript function to call. Once the addAjaxUpdate request has been competed this function is evaled. | This fuzzy method takes two arguments. The first arguement is the id of a tag for which there is an event given by addAjaxUpdate. The second argument is a javascript function to call. Once the addAjaxUpdate request has been competed this function is evaled. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4. | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L256 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 256 | ||
*Signature: public function addAjaxCompleteFunction($obj,$id,$func) | *Signature: public function addAjaxCompleteFunction($obj,$id,$func) | ||
*Parameters: | *Parameters: | ||
Line 19: | Line 19: | ||
**$func | **$func | ||
===addAjaxFunction()=== | ===addAjaxFunction()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4. | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L281 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 281 | ||
*Signature: protected function addAjaxFunction($obj,$id,$func,$state) | *Signature: protected function addAjaxFunction($obj,$id,$func,$state) | ||
*Parameters: | *Parameters: | ||
Line 26: | Line 26: | ||
**$func | **$func | ||
**$state | **$state | ||
===addAjaxLoad()=== | |||
@param boolean $js_node boolean -- if true, we will include any javascript generated by the I2CE_Stub in the $request. | |||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L209 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 209 | |||
*Signature: public function addAjaxLoad($obj,$id_replace,$requested_page,$id_content,$js_nodes,$form_id) | |||
*Parameters: | |||
**$obj | |||
** [http://www.php.net/manual/en/language.types.string.php string ] $id_replace <br/>is the id of the node we wish to replace in the page | |||
** [http://www.php.net/manual/en/language.types.string.php string ] $requested_page <br/>is the page we wish to make the ajax request from @param_string $id_content is the id of the node we wish to pull the content from in the requested page. | |||
**$id_content | |||
**$js_nodes | |||
***Default Value: false | |||
** [http://www.php.net/manual/en/language.types.string.php string ] $form_id <br/>if set a the id of form we will pull varaibles from. if it is a string or an array of strings it will concatenate all javascript nodes with id given by the strings and include in the request. defaults to false meaning do not return any javascript. | |||
***Default Value: '' | |||
===addAjaxRequestFunction()=== | ===addAjaxRequestFunction()=== | ||
This fuzzy method takes two arguments. The first arguement is the id of a tag for which there is an event given by addAjaxUpdate. The second argument is a javascript function to call. Once the addAjaxUpdate request has been initiated this function is evaled. Though to be honest, this function may be evaled just before the request has been initiated -- mootools in none to clear on this detail. | This fuzzy method takes two arguments. The first arguement is the id of a tag for which there is an event given by addAjaxUpdate. The second argument is a javascript function to call. Once the addAjaxUpdate request has been initiated this function is evaled. Though to be honest, this function may be evaled just before the request has been initiated -- mootools in none to clear on this detail. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4. | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L292 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 292 | ||
*Signature: public function addAjaxRequestFunction($obj,$id,$func) | *Signature: public function addAjaxRequestFunction($obj,$id,$func) | ||
*Parameters: | *Parameters: | ||
Line 36: | Line 49: | ||
===addAjaxToggle()=== | ===addAjaxToggle()=== | ||
@param boolean $js_node boolean -- if true, we will include any javascript generated by the I2CE_Stub in the $request. $param string $form_id -- if set a the id of form we will pull varaibles from. if it is a string or an array of strings it will concatenate all javascript nodes with id given by the strings and include in the request. defaults to false meaning do not return any javascript. | @param boolean $js_node boolean -- if true, we will include any javascript generated by the I2CE_Stub in the $request. $param string $form_id -- if set a the id of form we will pull varaibles from. if it is a string or an array of strings it will concatenate all javascript nodes with id given by the strings and include in the request. defaults to false meaning do not return any javascript. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4. | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L137 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 137 | ||
*Signature: public function addAjaxToggle($obj,$id_replace,$id_action,$event,$requested_page,$id_content,$js_nodes,$form_id,$remove_events,$open) | *Signature: public function addAjaxToggle($obj,$id_replace,$id_action,$event,$requested_page,$id_content,$js_nodes,$form_id,$remove_events,$open) | ||
*Parameters: | *Parameters: | ||
Line 55: | Line 68: | ||
===addAjaxToggleOffFunction()=== | ===addAjaxToggleOffFunction()=== | ||
This fuzzy method takes two arguments. The first arguement is the id of a tag for which there is an event given by addAjaxUpdate. The second argument is a javascript function to call. on a toggle off starts | This fuzzy method takes two arguments. The first arguement is the id of a tag for which there is an event given by addAjaxUpdate. The second argument is a javascript function to call. on a toggle off starts | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4. | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L275 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 275 | ||
*Signature: public function addAjaxToggleOffFunction($obj,$id,$func) | *Signature: public function addAjaxToggleOffFunction($obj,$id,$func) | ||
*Parameters: | *Parameters: | ||
Line 63: | Line 76: | ||
===addAjaxToggleOnFunction()=== | ===addAjaxToggleOnFunction()=== | ||
This fuzzy method takes two arguments. The first arguement is the id of a tag for which there is an event given by addAjaxUpdate. The second argument is a javascript function to call. on a toggle on starts | This fuzzy method takes two arguments. The first arguement is the id of a tag for which there is an event given by addAjaxUpdate. The second argument is a javascript function to call. on a toggle on starts | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4. | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L266 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 266 | ||
*Signature: public function addAjaxToggleOnFunction($obj,$id,$func) | *Signature: public function addAjaxToggleOnFunction($obj,$id,$func) | ||
*Parameters: | *Parameters: | ||
Line 71: | Line 84: | ||
===addAjaxUpdate()=== | ===addAjaxUpdate()=== | ||
@param boolean $js_node boolean -- if true, we will include any javascript generated by the I2CE_Stub in the $request. $param string $form_id -- if set a the id of form we will pull varaibles from. if it is a string or an array of strings it will concatenate all javascript nodes with id given by the strings and include in the request. defaults to false meaning do not return any javascript. | @param boolean $js_node boolean -- if true, we will include any javascript generated by the I2CE_Stub in the $request. $param string $form_id -- if set a the id of form we will pull varaibles from. if it is a string or an array of strings it will concatenate all javascript nodes with id given by the strings and include in the request. defaults to false meaning do not return any javascript. | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4. | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L158 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 158 | ||
*Signature: public function addAjaxUpdate($obj,$id_replace,$id_action,$event,$requested_page,$id_content,$js_nodes,$form_id,$remove_events,$open,$toggle) | *Signature: public function addAjaxUpdate($obj,$id_replace,$id_action,$event,$requested_page,$id_content,$js_nodes,$form_id,$remove_events,$open,$toggle) | ||
*Parameters: | *Parameters: | ||
Line 91: | Line 104: | ||
***Default Value: false | ***Default Value: false | ||
===ajaxTest()=== | ===ajaxTest()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4. | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L73 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 73 | ||
*Signature: public function ajaxTest($page) | *Signature: public function ajaxTest($page) | ||
*Parameters: | *Parameters: | ||
**$page | **$page | ||
===getHooks()=== | ===getHooks()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4. | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L55 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 55 | ||
*Signature: static public function getHooks() | *Signature: static public function getHooks() | ||
===getMethods()=== | ===getMethods()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4. | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L31 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 31 | ||
*Signature: static public function getMethods() | *Signature: static public function getMethods() | ||
===hasAjax()=== | ===hasAjax()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4. | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L108 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 108 | ||
*Signature: static public function hasAjax() | *Signature: static public function hasAjax() | ||
===hasAjaxFuzzy()=== | ===hasAjaxFuzzy()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4. | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L118 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 118 | ||
*Signature: public function hasAjaxFuzzy($obj) | *Signature: public function hasAjaxFuzzy($obj) | ||
*Parameters: | *Parameters: | ||
**$obj | **$obj | ||
===writeOutJS()=== | ===writeOutJS()=== | ||
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4. | *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L238 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 238 | ||
*Signature: public function writeOutJS($page) | *Signature: public function writeOutJS($page) | ||
*Parameters: | *Parameters: | ||
Line 126: | Line 139: | ||
===action_initialize()=== | ===action_initialize()=== | ||
This public method is inherited from [[Class: I2CE_Module (Development)#action_initialize() | I2CE_Module->action_initialize()]] | This public method is inherited from [[Class: I2CE_Module (Development)#action_initialize() | I2CE_Module->action_initialize()]] | ||
===getCLIMethods()=== | ===getCLIMethods()=== |
Latest revision as of 08:18, 6 May 2015
This article describes the class I2CE_Stub .
- Extends the class: I2CE_Module.
- Location: Part of the module stub in the package I2CE 4.1-dev
- Source: Defined in the file modules/Pages/modules/Stub/I2CE_Stub.php on line 29
- Author: Carl Leitner <litlfred@ibiblio.org>
I2CE_Stub
Methods
__construct()
- Defined in i2ce/modules/Pages/modules/Stub/I2CE_Stub.php on line 63
- Signature: public function __construct()
addAjaxCompleteFunction()
This fuzzy method takes two arguments. The first arguement is the id of a tag for which there is an event given by addAjaxUpdate. The second argument is a javascript function to call. Once the addAjaxUpdate request has been competed this function is evaled.
- Defined in i2ce/modules/Pages/modules/Stub/I2CE_Stub.php on line 256
- Signature: public function addAjaxCompleteFunction($obj,$id,$func)
- Parameters:
- $obj
- $id
- $func
addAjaxFunction()
- Defined in i2ce/modules/Pages/modules/Stub/I2CE_Stub.php on line 281
- Signature: protected function addAjaxFunction($obj,$id,$func,$state)
- Parameters:
- $obj
- $id
- $func
- $state
addAjaxLoad()
@param boolean $js_node boolean -- if true, we will include any javascript generated by the I2CE_Stub in the $request.
- Defined in i2ce/modules/Pages/modules/Stub/I2CE_Stub.php on line 209
- Signature: public function addAjaxLoad($obj,$id_replace,$requested_page,$id_content,$js_nodes,$form_id)
- Parameters:
- $obj
- string $id_replace
is the id of the node we wish to replace in the page - string $requested_page
is the page we wish to make the ajax request from @param_string $id_content is the id of the node we wish to pull the content from in the requested page. - $id_content
- $js_nodes
- Default Value: false
- string $form_id
if set a the id of form we will pull varaibles from. if it is a string or an array of strings it will concatenate all javascript nodes with id given by the strings and include in the request. defaults to false meaning do not return any javascript.- Default Value:
addAjaxRequestFunction()
This fuzzy method takes two arguments. The first arguement is the id of a tag for which there is an event given by addAjaxUpdate. The second argument is a javascript function to call. Once the addAjaxUpdate request has been initiated this function is evaled. Though to be honest, this function may be evaled just before the request has been initiated -- mootools in none to clear on this detail.
- Defined in i2ce/modules/Pages/modules/Stub/I2CE_Stub.php on line 292
- Signature: public function addAjaxRequestFunction($obj,$id,$func)
- Parameters:
- $obj
- $id
- $func
addAjaxToggle()
@param boolean $js_node boolean -- if true, we will include any javascript generated by the I2CE_Stub in the $request. $param string $form_id -- if set a the id of form we will pull varaibles from. if it is a string or an array of strings it will concatenate all javascript nodes with id given by the strings and include in the request. defaults to false meaning do not return any javascript.
- Defined in i2ce/modules/Pages/modules/Stub/I2CE_Stub.php on line 137
- Signature: public function addAjaxToggle($obj,$id_replace,$id_action,$event,$requested_page,$id_content,$js_nodes,$form_id,$remove_events,$open)
- Parameters:
- $obj
- strig $id_replace
is the id of the node we wish to replace in the page - string $id_action
is the id of the node in the page we wish to add the event to - string $event
is the event we wish to add on - string $requested_page
is the page we wish to make the ajax request from @param_string $id_content is the id of the node we wish to pull the content from in the requested page. - $id_content
- $js_nodes
- Default Value: false
- $form_id
- Default Value:
- boolean $remove_events
defaults to false. if true, we remove all events from the action element- Default Value: false
- boolean $open
defaults to false. if true, we remove all event listeners from the action element on the request- Default Value: false
addAjaxToggleOffFunction()
This fuzzy method takes two arguments. The first arguement is the id of a tag for which there is an event given by addAjaxUpdate. The second argument is a javascript function to call. on a toggle off starts
- Defined in i2ce/modules/Pages/modules/Stub/I2CE_Stub.php on line 275
- Signature: public function addAjaxToggleOffFunction($obj,$id,$func)
- Parameters:
- $obj
- $id
- $func
addAjaxToggleOnFunction()
This fuzzy method takes two arguments. The first arguement is the id of a tag for which there is an event given by addAjaxUpdate. The second argument is a javascript function to call. on a toggle on starts
- Defined in i2ce/modules/Pages/modules/Stub/I2CE_Stub.php on line 266
- Signature: public function addAjaxToggleOnFunction($obj,$id,$func)
- Parameters:
- $obj
- $id
- $func
addAjaxUpdate()
@param boolean $js_node boolean -- if true, we will include any javascript generated by the I2CE_Stub in the $request. $param string $form_id -- if set a the id of form we will pull varaibles from. if it is a string or an array of strings it will concatenate all javascript nodes with id given by the strings and include in the request. defaults to false meaning do not return any javascript.
- Defined in i2ce/modules/Pages/modules/Stub/I2CE_Stub.php on line 158
- Signature: public function addAjaxUpdate($obj,$id_replace,$id_action,$event,$requested_page,$id_content,$js_nodes,$form_id,$remove_events,$open,$toggle)
- Parameters:
- $obj
- strig $id_replace
is the id of the node we wish to replace in the page - string $id_action
is the id of the node in the page we wish to add the event to - string $event
is the event we wish to add on - string $requested_page
is the page we wish to make the ajax request from @param_string $id_content is the id of the node we wish to pull the content from in the requested page. - $id_content
- $js_nodes
- Default Value: false
- $form_id
- Default Value:
- boolean $remove_events
defaults to false. if true, we remove all events from the action element- Default Value: false
- boolean $open
defaults to false. if true, and not a toggle, we remove all event listeners from the action element on the request- Default Value: false
- boolean $toggle
Defaults to false.- Default Value: false
ajaxTest()
- Defined in i2ce/modules/Pages/modules/Stub/I2CE_Stub.php on line 73
- Signature: public function ajaxTest($page)
- Parameters:
- $page
getHooks()
- Defined in i2ce/modules/Pages/modules/Stub/I2CE_Stub.php on line 55
- Signature: static public function getHooks()
getMethods()
- Defined in i2ce/modules/Pages/modules/Stub/I2CE_Stub.php on line 31
- Signature: static public function getMethods()
hasAjax()
- Defined in i2ce/modules/Pages/modules/Stub/I2CE_Stub.php on line 108
- Signature: static public function hasAjax()
hasAjaxFuzzy()
- Defined in i2ce/modules/Pages/modules/Stub/I2CE_Stub.php on line 118
- Signature: public function hasAjaxFuzzy($obj)
- Parameters:
- $obj
writeOutJS()
- Defined in i2ce/modules/Pages/modules/Stub/I2CE_Stub.php on line 238
- Signature: public function writeOutJS($page)
- Parameters:
- $page
Inherited Methods
action_configure()
This public method is inherited from I2CE_Module->action_configure()
action_disable()
This public method is inherited from I2CE_Module->action_disable()
action_enable()
This public method is inherited from I2CE_Module->action_enable()
action_initialize()
This public method is inherited from I2CE_Module->action_initialize()
getCLIMethods()
This public method is inherited from I2CE_Module->getCLIMethods()
getConfig()
This public method is inherited from I2CE_Module->getConfig()
post_update()
This public method is inherited from I2CE_Module->post_update()
pre_upgrade()
This public method is inherited from I2CE_Module->pre_upgrade()
upgrade()
This public method is inherited from I2CE_Module->upgrade()
_hasMethod()
This public method is inherited from I2CE_Fuzzy->_hasMethod()
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()