Class: I2CE Module Jumper (Development): Difference between revisions

From IHRIS Wiki
(Created page with '{{otherversions|Class: I2CE_Module_Jumper}} This article describes the class ''I2CE_Module_Jumper'' . *Extends the class: I2CE_Module. *Loc…')
 
No edit summary
 
Line 2: Line 2:
This article describes the class ''I2CE_Module_Jumper'' .
This article describes the class ''I2CE_Module_Jumper'' .
*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)#jumper|jumper]] in the package [https://launchpad.net/i2ce I2CE] 4.0-dev
*Location: Part of the module [[I2CE Module List (Development)#jumper|jumper]] in the package [https://launchpad.net/i2ce I2CE] 4.1-dev
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Jumper/I2CE_Module_Jumper.php#L29 modules/Jumper/I2CE_Module_Jumper.php] on line 29
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Jumper/I2CE_Module_Jumper.php#L29 modules/Jumper/I2CE_Module_Jumper.php] on line 29
*Author: Carl Leitner <litlfred@ibiblio.org>
*Author: Carl Leitner <litlfred@ibiblio.org>
I2CE_Module_Jumper
I2CE_Module_Jumper
==Methods==
==Methods==
===_makeJumper()===
Shows the jumper.  This jumper works for pages that process a get request.  The page must put the all results in the node with id "{$id_base}_results".  The jumper is placed in the node with id "{$id_base}_pager_display".  It is expected that the node with id "{$id_base}_pager_display" is a sub-node of the node with id "{$id_base}_results". Note:  there will be several nodes created with id's of the form "{$id_base}_pager_$something" so with the exception of $something='display' you should not use id's of this form. This fuzzy method can be called either from an I2CE_Page or an I2CE_Template. @param string $pageVaraiable the get variable to store the requested page number in.  Defaults to 'page'
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Jumper/I2CE_Module_Jumper.php#L60 i2ce/modules/Jumper/I2CE_Module_Jumper.php] on line 60
*Signature: public function _makeJumper($template,$id_base,$jumps,$page,$total_pages,$pageURL,$query_fields,$pageVariable)
*Parameters:
**$template
** [http://www.php.net/manual/en/language.types.string.php string ] $id_base <br/>the base id that should be used in identifying the node to update (e.g. 'report')
** [http://www.php.net/manual/en/language.types.array.php array ] $jumps <br/>array of int, the pages we want in the jumper.  Does not inclu
** [http://www.php.net/manual/en/language.types.integer.php int ] $page <br/>the current page number
** [http://www.php.net/manual/en/language.types.integer.php int ] $total_pages <br/>the total numnber pf pages
** [http://www.php.net/manual/en/language.types.string.php string ] $pageURL <br/>the url of the page we will make the request from @param associatibe array $query_fields  keys are the query variables needed for the get request.  values are the _unencoded_ values that the variable should have.
**$query_fields
**$pageVariable
***Default Value: 'page'
===getMethods()===
===getMethods()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Jumper/I2CE_Module_Jumper.php#L30 i2ce/modules/Jumper/I2CE_Module_Jumper.php] on line 30
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Jumper/I2CE_Module_Jumper.php#L30 i2ce/modules/Jumper/I2CE_Module_Jumper.php] on line 30
*Signature: static public function getMethods()
*Signature: static public function getMethods()
===makeJumper()===
===makeJumper()===
Shows the jumper.  This jumper works for pages that process a get request.  The page must put the all results in the node with id "{$id_base}_results".  The jumper is placed in the node with id "{$id_base}_pager_display".  It is expected that the node with id "{$id_base}_pager_display" is a sub-node of the node with id "{$id_base}_results". Note:  there will be several nodes created with id's of the form "{$id_base}_pager_$something" so with the exception of $something='display' you should not use id's of this form. This fuzzy method can be called either from an I2CE_Page or an I2CE_Template. @param string $pageVaraiable the get variable to store the requested page number in.  Defaults to 'page'
Shows the jumper.  This jumper works for pages that process a get request.  The page must put the all results in the node with id "{$id_base}_results".  The jumper is placed in the node with id "{$id_base}_pager_display".  It is expected that the node with id "{$id_base}_pager_display" is a sub-node of the node with id "{$id_base}_results". Note:  there will be several nodes created with id's of the form "{$id_base}_pager_$something" so with the exception of $something='display' you should not use id's of this form. This fuzzy method can be called either from an I2CE_Page or an I2CE_Template. @param string $pageVaraiable the get variable to store the requested page number in.  Defaults to 'page'
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/Jumper/I2CE_Module_Jumper.php#L52 i2ce/modules/Jumper/I2CE_Module_Jumper.php] on line 52
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Jumper/I2CE_Module_Jumper.php#L216 i2ce/modules/Jumper/I2CE_Module_Jumper.php] on line 216
*Signature: public function makeJumper($template,$id_base,$page,$total_pages,$pageURL,$query_fields,$pageVariable)
*Signature: public function makeJumper($template,$id_base,$page,$total_pages,$pageURL,$query_fields,$pageVariable)
*Parameters:
**$template
** [http://www.php.net/manual/en/language.types.string.php string ] $id_base <br/>the base id that should be used in identifying the node to update (e.g. 'report')
** [http://www.php.net/manual/en/language.types.integer.php int ] $page <br/>the current page number
** [http://www.php.net/manual/en/language.types.integer.php int ] $total_pages <br/>the total numnber pf pages
** [http://www.php.net/manual/en/language.types.string.php string ] $pageURL <br/>the url of the page we will make the request from @param associatibe array $query_fields  keys are the query variables needed for the get request.  values are the _unencoded_ values that the variable should have.
**$query_fields
**$pageVariable
***Default Value: 'page'
===makeScalingJumper()===
Shows the jumper.  This jumper works for pages that process a get request.  The page must put the all results in the node with id "{$id_base}_results".  The jumper is placed in the node with id "{$id_base}_pager_display".  It is expected that the node with id "{$id_base}_pager_display" is a sub-node of the node with id "{$id_base}_results". Note:  there will be several nodes created with id's of the form "{$id_base}_pager_$something" so with the exception of $something='display' you should not use id's of this form. This fuzzy method can be called either from an I2CE_Page or an I2CE_Template. @param string $pageVaraiable the get variable to store the requested page number in.  Defaults to 'page'
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/Jumper/I2CE_Module_Jumper.php#L253 i2ce/modules/Jumper/I2CE_Module_Jumper.php] on line 253
*Signature: public function makeScalingJumper($template,$id_base,$page,$total_pages,$pageURL,$query_fields,$pageVariable)
*Parameters:
*Parameters:
**$template  
**$template  
Line 38: Line 65:
===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()]]
===getCLIHooks()===
This public method is inherited from [[Class: I2CE_Module (Development)#getCLIHooks() | I2CE_Module->getCLIHooks()]]


===getCLIMethods()===
===getCLIMethods()===

Latest revision as of 08:15, 6 May 2015


This article describes the class I2CE_Module_Jumper .

I2CE_Module_Jumper

Methods

_makeJumper()

Shows the jumper. This jumper works for pages that process a get request. The page must put the all results in the node with id "{$id_base}_results". The jumper is placed in the node with id "{$id_base}_pager_display". It is expected that the node with id "{$id_base}_pager_display" is a sub-node of the node with id "{$id_base}_results". Note: there will be several nodes created with id's of the form "{$id_base}_pager_$something" so with the exception of $something='display' you should not use id's of this form. This fuzzy method can be called either from an I2CE_Page or an I2CE_Template. @param string $pageVaraiable the get variable to store the requested page number in. Defaults to 'page'

  • Defined in i2ce/modules/Jumper/I2CE_Module_Jumper.php on line 60
  • Signature: public function _makeJumper($template,$id_base,$jumps,$page,$total_pages,$pageURL,$query_fields,$pageVariable)
  • Parameters:
    • $template
    • string $id_base
      the base id that should be used in identifying the node to update (e.g. 'report')
    • array $jumps
      array of int, the pages we want in the jumper. Does not inclu
    • int $page
      the current page number
    • int $total_pages
      the total numnber pf pages
    • string $pageURL
      the url of the page we will make the request from @param associatibe array $query_fields keys are the query variables needed for the get request. values are the _unencoded_ values that the variable should have.
    • $query_fields
    • $pageVariable
      • Default Value: 'page'

getMethods()

makeJumper()

Shows the jumper. This jumper works for pages that process a get request. The page must put the all results in the node with id "{$id_base}_results". The jumper is placed in the node with id "{$id_base}_pager_display". It is expected that the node with id "{$id_base}_pager_display" is a sub-node of the node with id "{$id_base}_results". Note: there will be several nodes created with id's of the form "{$id_base}_pager_$something" so with the exception of $something='display' you should not use id's of this form. This fuzzy method can be called either from an I2CE_Page or an I2CE_Template. @param string $pageVaraiable the get variable to store the requested page number in. Defaults to 'page'

  • Defined in i2ce/modules/Jumper/I2CE_Module_Jumper.php on line 216
  • Signature: public function makeJumper($template,$id_base,$page,$total_pages,$pageURL,$query_fields,$pageVariable)
  • Parameters:
    • $template
    • string $id_base
      the base id that should be used in identifying the node to update (e.g. 'report')
    • int $page
      the current page number
    • int $total_pages
      the total numnber pf pages
    • string $pageURL
      the url of the page we will make the request from @param associatibe array $query_fields keys are the query variables needed for the get request. values are the _unencoded_ values that the variable should have.
    • $query_fields
    • $pageVariable
      • Default Value: 'page'

makeScalingJumper()

Shows the jumper. This jumper works for pages that process a get request. The page must put the all results in the node with id "{$id_base}_results". The jumper is placed in the node with id "{$id_base}_pager_display". It is expected that the node with id "{$id_base}_pager_display" is a sub-node of the node with id "{$id_base}_results". Note: there will be several nodes created with id's of the form "{$id_base}_pager_$something" so with the exception of $something='display' you should not use id's of this form. This fuzzy method can be called either from an I2CE_Page or an I2CE_Template. @param string $pageVaraiable the get variable to store the requested page number in. Defaults to 'page'

  • Defined in i2ce/modules/Jumper/I2CE_Module_Jumper.php on line 253
  • Signature: public function makeScalingJumper($template,$id_base,$page,$total_pages,$pageURL,$query_fields,$pageVariable)
  • Parameters:
    • $template
    • string $id_base
      the base id that should be used in identifying the node to update (e.g. 'report')
    • int $page
      the current page number
    • int $total_pages
      the total numnber pf pages
    • string $pageURL
      the url of the page we will make the request from @param associatibe array $query_fields keys are the query variables needed for the get request. values are the _unencoded_ values that the variable should have.
    • $query_fields
    • $pageVariable
      • Default Value: 'page'

Inherited Methods

__construct()

This public method is inherited from I2CE_Module->__construct()

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()

getHooks()

This public method is inherited from I2CE_Module->getHooks()

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()