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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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. | *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
For other versions, see Class: I2CE_SwissFactory (versions) .
This article describes the abstract class I2CE_SwissFactory .
- Child Classes:
- Location: Part of the module swissfactory in the package I2CE 4.1-dev
- Source: Defined in the file modules/SwissFactory/lib/I2CE_SwissFactory.php on line 29
- Author: Carl Leitner <litlfred@ibiblio.org>
I2CE_SwissFactory
Variables
$page
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 33
- Type: protected $page
$swiss
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 37
- Type: protected $swiss
$stored_options
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 40
- Type: protected $stored_options
$template
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 41
- Type: protected $template
$style
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 407
- Type: protected $style
Methods
__construct()
construct a swiss swiss factory and create it if it doesn't exist. @throws Exception
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 46
- Signature: public function __construct($page,$init_options)
- Parameters:
- $page
- $init_options
- Default Value: array()
count()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 539
- Signature: abstract public function count($swiss)
- Parameters:
- $swiss
current()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 517
- Signature: public function current($swiss)
- Parameters:
- $swiss
displayValues()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 409
- Signature: public function displayValues($contentNode,$path,$action,$transient_options)
- Parameters:
- $contentNode
- $path
- $action
- $transient_options
- Default Value: array()
getAttribute()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 228
- Signature: public function getAttribute($swiss,$attr)
- Parameters:
- $swiss
- $attr
getChildNames()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 507
- Signature: abstract public function getChildNames($swiss)
- Parameters:
- $swiss
getChildStorage()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 239
- Signature: abstract public function getChildStorage($swiss,$child,$create)
- Parameters:
- $swiss
- $child
- Default Value: null
- $create
- Default Value: false
getChildType()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 240
- Signature: abstract public function getChildType($swiss,$child)
- Parameters:
- $swiss
- $child
getDescription()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 241
- Signature: public function getDescription($swiss)
- Parameters:
- $swiss
getDisplayName()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 244
- Signature: public function getDisplayName($swiss)
- Parameters:
- $swiss
getPage()
Get the page
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 91
- Signature: public function getPage()
- Returns: I2CE_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:
- 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:
- Returns: array
getRootStorage()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 85
- Signature: abstract protected function getRootStorage()
getRootType()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 81
- Signature: protected function getRootType()
getStatus()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 261
- Signature: abstract public function getStatus($swiss)
- Parameters:
- $swiss
getStorage()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 174
- Signature: public function getStorage($path,$add_path)
- Parameters:
- $path
- $add_path
- Default Value: null
getStoredOptions()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 203
- Signature: public function getStoredOptions($key)
- Parameters:
- $key
- Default Value: null
- $key
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.
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 190
- Signature: public function getSwiss($path,$add_path)
- Parameters:
- mixed $path
Either a string which is a config node path or an array of path components. - $add_path
- Default Value: null
- mixed $path
- Returns: I2CE_Swiss
or null
getURLQueryString()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 270
- Signature: public function getURLQueryString($additional,$remove)
- Parameters:
- $additional
- Default Value: array()
- $remove
- Default Value: array()
- $additional
getURLRoot()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 113
- Signature: abstract public function getURLRoot($action)
- Parameters:
- $action
- Default Value: null
- $action
hasAttribute()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 233
- Signature: public function hasAttribute($swiss,$attr)
- Parameters:
- $swiss
- $attr
humanText()
Tries to turn a string (such as a magic data key) into human text @param $text
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 253
- Signature: static public function humanText($text)
- Parameters:
- $text
- Returns: string
key()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 525
- Signature: abstract public function key($swiss)
- Parameters:
- $swiss
next()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 527
- Signature: abstract public function next($swiss)
- Parameters:
- $swiss
rewind()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 529
- Signature: abstract public function rewind($swiss)
- Parameters:
- $swiss
setRedirect()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 265
- Signature: public function setRedirect($redirect)
- Parameters:
- $redirect
setRootSwiss()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 67
- Signature: public function setRootSwiss()
setStoredOptions()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 223
- Signature: public function setStoredOptions($options)
- Parameters:
- $options
setupDisplay()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 467
- Signature: protected function setupDisplay($swiss,$action,$contentNode)
- Parameters:
- $swiss
- $action
- $contentNode
updateValues()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 321
- Signature: public function updateValues($vals,$do_redirect,$transact)
- Parameters:
- $vals
- $do_redirect
- Default Value: true
- $transact
- Default Value: false
valid()
- Defined in i2ce/modules/SwissFactory/lib/I2CE_SwissFactory.php on line 531
- Signature: abstract public function valid($swiss)
- Parameters:
- $swiss