Class: I2CE SwissFactory (Development): Difference between revisions

From IHRIS Wiki
(Created page with '{{otherversions|Class: I2CE_SwissFactory}} This article describes the ''abstract'' class ''I2CE_SwissFactory'' . *Child Classes: ** [[Class: I2CE_SwissConfigFactory (Development)…')
 
No edit summary
 
Line 4: Line 4:
** [[Class: I2CE_SwissConfigFactory (Development) | I2CE_SwissConfigFactory]]
** [[Class: I2CE_SwissConfigFactory (Development) | I2CE_SwissConfigFactory]]
** [[Class: I2CE_SwissMagicFactory (Development) | I2CE_SwissMagicFactory]]
** [[Class: I2CE_SwissMagicFactory (Development) | I2CE_SwissMagicFactory]]
*Location: Part of the module [[I2CE Module List (Development)#swissfactory|swissfactory]] in the package [https://launchpad.net/i2ce I2CE] 4.0-dev
*Location: Part of the module [[I2CE Module List (Development)#swissfactory|swissfactory]] 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/SwissFactory/lib/I2CE_SwissFactory.php#L29 modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 29
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L29 modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 29
*Author: Carl Leitner <litlfred@ibiblio.org>
*Author: Carl Leitner <litlfred@ibiblio.org>
I2CE_SwissFactory
I2CE_SwissFactory
==Variables==
==Variables==
===$page===
===$page===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L33 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 33
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L33 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 33
*Type: protected $page
*Type: protected $page


===$swiss===
===$swiss===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L37 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 37
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L37 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 37
*Type: protected $swiss
*Type: protected $swiss


===$stored_options===
===$stored_options===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L40 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 40
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L40 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 40
*Type: protected $stored_options
*Type: protected $stored_options


===$template===
===$template===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L41 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 41
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L41 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 41
*Type: protected $template
*Type: protected $template


===$style===
===$style===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L403 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 403
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L407 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 407
*Type: protected $style
*Type: protected $style


Line 32: Line 32:
===__construct()===
===__construct()===
construct a swiss swiss factory and create it if it doesn't exist. @throws Exception
construct a swiss swiss factory and create it if it doesn't exist. @throws Exception
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L46 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 46
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L46 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 46
*Signature: public function __construct($page,$init_options)
*Signature: public function __construct($page,$init_options)
*Parameters:
*Parameters:
Line 39: Line 39:
***Default Value: array()
***Default Value: array()
===count()===
===count()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L531 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 531
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L539 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 539
*Signature: abstract public function count($swiss)
*Signature: abstract public function count($swiss)
*Parameters:
*Parameters:
**$swiss  
**$swiss  
===current()===
===current()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L509 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 509
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L517 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 517
*Signature: public function current($swiss)
*Signature: public function current($swiss)
*Parameters:
*Parameters:
**$swiss  
**$swiss  
===displayValues()===
===displayValues()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L405 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 405
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L409 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 409
*Signature: public function displayValues($contentNode,$path,$action,$transient_options)
*Signature: public function displayValues($contentNode,$path,$action,$transient_options)
*Parameters:
*Parameters:
Line 58: Line 58:
***Default Value: array()
***Default Value: array()
===getAttribute()===
===getAttribute()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L228 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 228
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L228 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 228
*Signature: public function getAttribute($swiss,$attr)
*Signature: public function getAttribute($swiss,$attr)
*Parameters:
*Parameters:
Line 64: Line 64:
**$attr  
**$attr  
===getChildNames()===
===getChildNames()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L499 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 499
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L507 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 507
*Signature: abstract public function getChildNames($swiss)
*Signature: abstract public function getChildNames($swiss)
*Parameters:
*Parameters:
**$swiss  
**$swiss  
===getChildStorage()===
===getChildStorage()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L239 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 239
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L239 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 239
*Signature: abstract public function getChildStorage($swiss,$child,$create)
*Signature: abstract public function getChildStorage($swiss,$child,$create)
*Parameters:
*Parameters:
Line 78: Line 78:
***Default Value: false
***Default Value: false
===getChildType()===
===getChildType()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L240 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 240
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L240 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 240
*Signature: abstract public function getChildType($swiss,$child)
*Signature: abstract public function getChildType($swiss,$child)
*Parameters:
*Parameters:
Line 84: Line 84:
**$child  
**$child  
===getDescription()===
===getDescription()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L241 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 241
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L241 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 241
*Signature: public function getDescription($swiss)
*Signature: public function getDescription($swiss)
*Parameters:
*Parameters:
**$swiss  
**$swiss  
===getDisplayName()===
===getDisplayName()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L244 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 244
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L244 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 244
*Signature: public function getDisplayName($swiss)
*Signature: public function getDisplayName($swiss)
*Parameters:
*Parameters:
Line 95: Line 95:
===getPage()===
===getPage()===
Get the page
Get the page
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L91 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 91
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L91 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 91
*Signature: public function getPage()
*Signature: public function getPage()
*Returns: [[Class: I2CE_Page (Development) | I2CE_Page]]
*Returns: [[Class: I2CE_Page (Development) | I2CE_Page]]
===getPath()===
===getPath()===
Gets the string representation of a path
Gets the string representation of a path
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L103 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 103
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L103 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 103
*Signature: static public function getPath($path,$addComponents)
*Signature: static public function getPath($path,$addComponents)
*Parameters:
*Parameters:
Line 109: Line 109:
===getPathComponents()===
===getPathComponents()===
Gets the array representation of the config node path
Gets the array representation of the config node path
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L122 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 122
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L122 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 122
*Signature: static public function getPathComponents($path,$addComponents)
*Signature: static public function getPathComponents($path,$addComponents)
*Parameters:
*Parameters:
Line 117: Line 117:
*Returns: [http://www.php.net/manual/en/language.types.array.php array ]
*Returns: [http://www.php.net/manual/en/language.types.array.php array ]
===getRootStorage()===
===getRootStorage()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L85 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 85
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L85 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 85
*Signature: abstract protected function getRootStorage()
*Signature: abstract protected function getRootStorage()
===getRootType()===
===getRootType()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L81 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 81
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L81 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 81
*Signature: protected function getRootType()
*Signature: protected function getRootType()
===getStatus()===
===getStatus()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L261 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 261
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L261 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 261
*Signature: abstract public function getStatus($swiss)
*Signature: abstract public function getStatus($swiss)
*Parameters:
*Parameters:
**$swiss  
**$swiss  
===getStorage()===
===getStorage()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L174 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 174
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L174 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 174
*Signature: public function getStorage($path,$add_path)
*Signature: public function getStorage($path,$add_path)
*Parameters:
*Parameters:
Line 135: Line 135:
***Default Value: null
***Default Value: null
===getStoredOptions()===
===getStoredOptions()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L203 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 203
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L203 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 203
*Signature: public function getStoredOptions($key)
*Signature: public function getStoredOptions($key)
*Parameters:
*Parameters:
Line 142: Line 142:
===getSwiss()===
===getSwiss()===
get the swiss for a path @param mixed $addPath Either a string which is a config node path or an array of additional path components.
get the swiss for a path @param mixed $addPath Either a string which is a config node path or an array of additional path components.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L190 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 190
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L190 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 190
*Signature: public function getSwiss($path,$add_path)
*Signature: public function getSwiss($path,$add_path)
*Parameters:
*Parameters:
Line 150: Line 150:
*Returns: [[Class: I2CE_Swiss (Development) | I2CE_Swiss]]<br/>or null
*Returns: [[Class: I2CE_Swiss (Development) | I2CE_Swiss]]<br/>or null
===getURLQueryString()===
===getURLQueryString()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L270 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 270
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L270 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 270
*Signature: public function getURLQueryString($additional,$remove)
*Signature: public function getURLQueryString($additional,$remove)
*Parameters:
*Parameters:
Line 158: Line 158:
***Default Value: array()
***Default Value: array()
===getURLRoot()===
===getURLRoot()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L113 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 113
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L113 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 113
*Signature: abstract public function getURLRoot($action)
*Signature: abstract public function getURLRoot($action)
*Parameters:
*Parameters:
Line 164: Line 164:
***Default Value: null
***Default Value: null
===hasAttribute()===
===hasAttribute()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L233 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 233
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L233 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 233
*Signature: public function hasAttribute($swiss,$attr)
*Signature: public function hasAttribute($swiss,$attr)
*Parameters:
*Parameters:
Line 171: Line 171:
===humanText()===
===humanText()===
Tries to turn a string (such as a magic data key) into  human text @param $text
Tries to turn a string (such as a magic data key) into  human text @param $text
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L253 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 253
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L253 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 253
*Signature: static public function humanText($text)
*Signature: static public function humanText($text)
*Parameters:
*Parameters:
Line 177: Line 177:
*Returns: [http://www.php.net/manual/en/language.types.string.php string ]
*Returns: [http://www.php.net/manual/en/language.types.string.php string ]
===key()===
===key()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L517 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 517
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L525 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 525
*Signature: abstract public function key($swiss)
*Signature: abstract public function key($swiss)
*Parameters:
*Parameters:
**$swiss  
**$swiss  
===next()===
===next()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L519 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 519
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L527 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 527
*Signature: abstract public function next($swiss)
*Signature: abstract public function next($swiss)
*Parameters:
*Parameters:
**$swiss  
**$swiss  
===rewind()===
===rewind()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L521 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 521
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L529 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 529
*Signature: abstract public function rewind($swiss)
*Signature: abstract public function rewind($swiss)
*Parameters:
*Parameters:
**$swiss  
**$swiss  
===setRedirect()===
===setRedirect()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L265 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 265
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L265 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 265
*Signature: public function setRedirect($redirect)
*Signature: public function setRedirect($redirect)
*Parameters:
*Parameters:
**$redirect  
**$redirect  
===setRootSwiss()===
===setRootSwiss()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L67 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 67
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L67 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 67
*Signature: public function setRootSwiss()
*Signature: public function setRootSwiss()
===setStoredOptions()===
===setStoredOptions()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L223 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 223
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L223 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 223
*Signature: public function setStoredOptions($options)
*Signature: public function setStoredOptions($options)
*Parameters:
*Parameters:
**$options  
**$options  
===setupDisplay()===
===setupDisplay()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L459 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 459
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L467 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 467
*Signature: protected function setupDisplay($swiss,$action,$contentNode)
*Signature: protected function setupDisplay($swiss,$action,$contentNode)
*Parameters:
*Parameters:
Line 212: Line 212:
**$contentNode  
**$contentNode  
===updateValues()===
===updateValues()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L321 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 321
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L321 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 321
*Signature: public function updateValues($vals,$do_redirect,$transact)
*Signature: public function updateValues($vals,$do_redirect,$transact)
*Parameters:
*Parameters:
Line 221: Line 221:
***Default Value: false
***Default Value: false
===valid()===
===valid()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L523 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 523
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.1-dev/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L531 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 531
*Signature: abstract public function valid($swiss)
*Signature: abstract public function valid($swiss)
*Parameters:
*Parameters:

Latest revision as of 08:18, 6 May 2015


This article describes the abstract class I2CE_SwissFactory .

I2CE_SwissFactory

Variables

$page

$swiss

$stored_options

$template

$style

Methods

__construct()

construct a swiss swiss factory and create it if it doesn't exist. @throws Exception

count()

current()

displayValues()

getAttribute()

getChildNames()

getChildStorage()

getChildType()

getDescription()

getDisplayName()

getPage()

Get the page

getPath()

Gets the string representation of a path

  • Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 103
  • Signature: static public function getPath($path,$addComponents)
  • Parameters:
    • mixed $path
      Either a string or an arrray of path components
    • mixed $addComponents
      Defaults to null. If a string or an array of path components then it is appended to the path
      • Default Value: null
  • Returns: string

getPathComponents()

Gets the array representation of the config node path

  • Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 122
  • Signature: static public function getPathComponents($path,$addComponents)
  • Parameters:
    • mixed $path
      Either a string or an arrray of path components
    • mixed $addComponents
      Defaults to null. If a string or an array of path components then it is appended to the path
      • Default Value: null
  • Returns: array

getRootStorage()

getRootType()

getStatus()

getStorage()

getStoredOptions()

getSwiss()

get the swiss for a path @param mixed $addPath Either a string which is a config node path or an array of additional path components.

getURLQueryString()

getURLRoot()

hasAttribute()

humanText()

Tries to turn a string (such as a magic data key) into human text @param $text

key()

next()

rewind()

setRedirect()

setRootSwiss()

setStoredOptions()

setupDisplay()

updateValues()

valid()