|
|
(12 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| This article describes the class ''I2CE_Stub''.
| | #REDIRECT [[Class: I2CE_Stub (4.1.7)]] |
| *Extends the class: [[Class: I2CE_Module | I2CE_Module]].
| |
| *Location: Part of the module [[I2CE Module List#stub|stub]] in the package [https://launchpad.net/i2ce I2CE]
| |
| *Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/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>
| |
| I2CE_Stub
| |
| ==Methods==
| |
| ===__construct()===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L61 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 61
| |
| *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 [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L220 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 220
| |
| *Signature: public function addAjaxCompleteFunction($obj,$id,$func)
| |
| *Parameters:
| |
| **$obj
| |
| **$id
| |
| **$func
| |
| ===addAjaxFunction()===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L245 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 245
| |
| *Signature: protected function addAjaxFunction($obj,$id,$func,$state)
| |
| *Parameters:
| |
| **$obj
| |
| **$id
| |
| **$func
| |
| **$state
| |
| ===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 [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L256 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 256
| |
| *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 [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L135 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 135
| |
| *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 <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 ] $id_action <br/>is the id of the node in the page we wish to add the event to
| |
| ** [http://www.php.net/manual/en/language.types.string.php string ] $event <br/>is the event we wish to add on
| |
| ** [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
| |
| **$form_id
| |
| ***Default Value: ''
| |
| ** [http://www.php.net/manual/en/language.types.boolean.php boolean ] $remove_events <br/>defaults to false. if true, we remove all events from the action element
| |
| ***Default Value: false
| |
| ** [http://www.php.net/manual/en/language.types.boolean.php boolean ] $open <br/>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 [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L239 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 239
| |
| *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 [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L230 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 230
| |
| *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 [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L156 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 156
| |
| *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 <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 ] $id_action <br/>is the id of the node in the page we wish to add the event to
| |
| ** [http://www.php.net/manual/en/language.types.string.php string ] $event <br/>is the event we wish to add on
| |
| ** [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
| |
| **$form_id
| |
| ***Default Value: ''
| |
| ** [http://www.php.net/manual/en/language.types.boolean.php boolean ] $remove_events <br/>defaults to false. if true, we remove all events from the action element
| |
| ***Default Value: false
| |
| ** [http://www.php.net/manual/en/language.types.boolean.php boolean ] $open <br/>defaults to false. if true, and not a toggle, we remove all event listeners from the action element on the request
| |
| ***Default Value: false
| |
| ** [http://www.php.net/manual/en/language.types.boolean.php boolean ] $toggle <br/>Defaults to false.
| |
| ***Default Value: false
| |
| ===ajaxTest()===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L68 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 68
| |
| *Signature: public function ajaxTest($page)
| |
| *Parameters:
| |
| **$page
| |
| ===getHooks()===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L53 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 53
| |
| *Signature: static public function getHooks()
| |
| ===getMethods()===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/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()
| |
| ===hasAjax()===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L106 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 106
| |
| *Signature: static public function hasAjax()
| |
| ===hasAjaxFuzzy()===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L116 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 116
| |
| *Signature: public function hasAjaxFuzzy($obj)
| |
| *Parameters:
| |
| **$obj
| |
| ===writeOutJS()===
| |
| *Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/modules/Pages/modules/Stub/I2CE_Stub.php#L199 i2ce/modules/Pages/modules/Stub/I2CE_Stub.php] on line 199
| |
| *Signature: public function writeOutJS($page)
| |
| *Parameters:
| |
| **$page
| |
| ==Inherited Methods==
| |
| ===action_configure()===
| |
| This public method is inherited from [[Class: I2CE_Module#action_configure() | I2CE_Module->action_configure()]]
| |
| | |
| ===action_disable()===
| |
| This public method is inherited from [[Class: I2CE_Module#action_disable() | I2CE_Module->action_disable()]]
| |
| | |
| ===action_enable()===
| |
| This public method is inherited from [[Class: I2CE_Module#action_enable() | I2CE_Module->action_enable()]]
| |
| | |
| ===action_initialize()===
| |
| This public method is inherited from [[Class: I2CE_Module#action_initialize() | I2CE_Module->action_initialize()]]
| |
| | |
| ===conflict_external()===
| |
| This public method is inherited from [[Class: I2CE_Module#conflict_external() | I2CE_Module->conflict_external()]]
| |
| | |
| ===getCLIHooks()===
| |
| This public method is inherited from [[Class: I2CE_Module#getCLIHooks() | I2CE_Module->getCLIHooks()]]
| |
| | |
| ===getCLIMethods()===
| |
| This public method is inherited from [[Class: I2CE_Module#getCLIMethods() | I2CE_Module->getCLIMethods()]]
| |
| | |
| ===getConfig()===
| |
| This public method is inherited from [[Class: I2CE_Module#getConfig() | I2CE_Module->getConfig()]]
| |
| | |
| ===post_update()===
| |
| This public method is inherited from [[Class: I2CE_Module#post_update() | I2CE_Module->post_update()]]
| |
| | |
| ===pre_upgrade()===
| |
| This public method is inherited from [[Class: I2CE_Module#pre_upgrade() | I2CE_Module->pre_upgrade()]]
| |
| | |
| ===requirement_external()===
| |
| This public method is inherited from [[Class: I2CE_Module#requirement_external() | I2CE_Module->requirement_external()]]
| |
| | |
| ===upgrade()===
| |
| This public method is inherited from [[Class: I2CE_Module#upgrade() | I2CE_Module->upgrade()]]
| |
| | |
| ===_hasMethod()===
| |
| This public method is inherited from [[Class: I2CE_Fuzzy#_hasMethod() | I2CE_Fuzzy->_hasMethod()]]
| |
| ==Inherited Fuzzy Methods==
| |
| ===launchBackgroundProcess()===
| |
| This method is inherited from [[Class: I2CE_Module#launchBackgroundProcess() | I2CE_Module->launchBackgroundProcess()]]
| |
| | |
| ===launchBackgroundPHPScript()===
| |
| This method is inherited from [[Class: I2CE_Module#launchBackgroundPHPScript() | I2CE_Module->launchBackgroundPHPScript()]]
| |
| | |
| ===launchBackgroundPage()===
| |
| This method is inherited from [[Class: I2CE_Module#launchBackgroundPage() | I2CE_Module->launchBackgroundPage()]]
| |
| | |
| ===userMessage()===
| |
| This method is inherited from [[Class: I2CE_Fuzzy#userMessage() | I2CE_Fuzzy->userMessage()]]
| |
| | |
| | |
| [[Category:Class Documentation]]
| |