Class: I2CE SwissFactory: Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
Line 4: Line 4:
** [[Class: I2CE_SwissMagicFactory | I2CE_SwissMagicFactory]]
** [[Class: I2CE_SwissMagicFactory | I2CE_SwissMagicFactory]]
*Location: Part of the module [[I2CE Module List#swissfactory|swissfactory]] in the package [https://launchpad.net/i2ce I2CE]
*Location: Part of the module [[I2CE Module List#swissfactory|swissfactory]] in the package [https://launchpad.net/i2ce I2CE]
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.1-release/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php modules/SwissFactory/lib/I2CE_SwissFactory.php]
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/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.2-release/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.2-release/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.2-release/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.2-release/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.2-release/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L403 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 403
*Type: protected $style
*Type: protected $style


Line 26: Line 31:
===__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.2-release/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 32: Line 38:
***Default Value: array()
***Default Value: array()
===count()===
===count()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L531 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 531
*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.2-release/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L509 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 509
*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.2-release/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L405 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 405
*Signature: public function displayValues($contentNode,$path,$action,$transient_options)
*Signature: public function displayValues($contentNode,$path,$action,$transient_options)
*Parameters:
*Parameters:
Line 48: Line 57:
***Default Value: array()
***Default Value: array()
===getAttribute()===
===getAttribute()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/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 53: Line 63:
**$attr  
**$attr  
===getChildNames()===
===getChildNames()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L499 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 499
*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.2-release/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 65: Line 77:
***Default Value: false
***Default Value: false
===getChildType()===
===getChildType()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/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 70: Line 83:
**$child  
**$child  
===getDescription()===
===getDescription()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/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.2-release/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 79: Line 94:
===getPage()===
===getPage()===
Get the page
Get the page
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/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 | I2CE_Page]]
*Returns: [[Class: I2CE_Page | 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.2-release/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 91: Line 108:
===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.2-release/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 98: Line 116:
*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.2-release/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.2-release/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.2-release/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.2-release/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 112: Line 134:
***Default Value: null
***Default Value: null
===getStoredOptions()===
===getStoredOptions()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/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 118: Line 141:
===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.2-release/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 125: Line 149:
*Returns: [[Class: I2CE_Swiss | I2CE_Swiss]]<br/>or null
*Returns: [[Class: I2CE_Swiss | I2CE_Swiss]]<br/>or null
===getURLQueryString()===
===getURLQueryString()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/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 132: Line 157:
***Default Value: array()
***Default Value: array()
===getURLRoot()===
===getURLRoot()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/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 137: Line 163:
***Default Value: null
***Default Value: null
===hasAttribute()===
===hasAttribute()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/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 143: Line 170:
===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.2-release/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 148: Line 176:
*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.2-release/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L517 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 517
*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.2-release/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L519 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 519
*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.2-release/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L521 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 521
*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.2-release/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.2-release/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.2-release/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.2-release/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L459 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 459
*Signature: protected function setupDisplay($swiss,$action,$contentNode)
*Signature: protected function setupDisplay($swiss,$action,$contentNode)
*Parameters:
*Parameters:
Line 176: Line 211:
**$contentNode  
**$contentNode  
===updateValues()===
===updateValues()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/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 184: Line 220:
***Default Value: false
***Default Value: false
===valid()===
===valid()===
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/i2ce/4.0.2-release/annotate/head:/modules/SwissFactory/lib/I2CE_SwissFactory.php#L523 i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php] on line 523
*Signature: abstract public function valid($swiss)
*Signature: abstract public function valid($swiss)
*Parameters:
*Parameters:

Revision as of 08:52, 10 November 2009

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