Class: I2CE SwissFactory: Difference between revisions
No edit summary |
No edit summary |
||
Line 34: | Line 34: | ||
**Default Value: array() | **Default Value: array() | ||
===count()=== | ===count()=== | ||
*Signature: public function count($swiss) | *Signature: abstract public function count($swiss) | ||
Parameters: | Parameters: | ||
*$swiss | *$swiss | ||
Line 55: | Line 55: | ||
*$attr | *$attr | ||
===getChildNames()=== | ===getChildNames()=== | ||
*Signature: public function getChildNames($swiss) | *Signature: abstract public function getChildNames($swiss) | ||
Parameters: | Parameters: | ||
*$swiss | *$swiss | ||
===getChildStorage()=== | ===getChildStorage()=== | ||
*Signature: public function getChildStorage($swiss,$child,$create) | *Signature: abstract public function getChildStorage($swiss,$child,$create) | ||
Parameters: | Parameters: | ||
*$swiss | *$swiss | ||
Line 67: | Line 67: | ||
**Default Value: false | **Default Value: false | ||
===getChildType()=== | ===getChildType()=== | ||
*Signature: public function getChildType($swiss,$child) | *Signature: abstract public function getChildType($swiss,$child) | ||
Parameters: | Parameters: | ||
*$swiss | *$swiss | ||
Line 102: | Line 102: | ||
**Default Value: null | **Default Value: null | ||
===getRootStorage()=== | ===getRootStorage()=== | ||
*Signature: protected function getRootStorage() | *Signature: abstract protected function getRootStorage() | ||
===getRootType()=== | ===getRootType()=== | ||
*Signature: protected function getRootType() | *Signature: protected function getRootType() | ||
===getStatus()=== | ===getStatus()=== | ||
*Signature: public function getStatus($swiss) | *Signature: abstract public function getStatus($swiss) | ||
Parameters: | Parameters: | ||
*$swiss | *$swiss | ||
Line 137: | Line 137: | ||
**Default Value: array() | **Default Value: array() | ||
===getURLRoot()=== | ===getURLRoot()=== | ||
*Signature: public function getURLRoot($action) | *Signature: abstract public function getURLRoot($action) | ||
Parameters: | Parameters: | ||
*$action | *$action | ||
Line 154: | Line 154: | ||
*$text | *$text | ||
===key()=== | ===key()=== | ||
*Signature: public function key($swiss) | *Signature: abstract public function key($swiss) | ||
Parameters: | Parameters: | ||
*$swiss | *$swiss | ||
===next()=== | ===next()=== | ||
*Signature: public function next($swiss) | *Signature: abstract public function next($swiss) | ||
Parameters: | |||
*$swiss | |||
===rewind()=== | |||
*Signature: abstract public function rewind($swiss) | |||
Parameters: | Parameters: | ||
*$swiss | *$swiss | ||
Line 186: | Line 190: | ||
**Default Value: false | **Default Value: false | ||
===valid()=== | ===valid()=== | ||
*Signature: public function valid($swiss) | *Signature: abstract public function valid($swiss) | ||
Parameters: | Parameters: | ||
*$swiss | *$swiss |
Revision as of 20:12, 16 October 2009
This article desrcibes the1 class I2CE_SwissFactory It is contained in the module swissfactory in the package I2CE The class is defined in the file: modules/SwissFactory/lib/I2CE_SwissFactory.php I2CE_SwissFactory @package I2CE @subpackage Core @author Carl Leitner <litlfred@ibiblio.org> @version 2.1 @access public
Variables
$page
- Type: protected $page
$swiss
- Type: protected $swiss
$stored_options
- Type: protected $stored_options
$template
- Type: protected $template
$style
- Type: protected $style
Methods
__construct()
construct a swiss swiss factory and create it if it doesn't exist. @throws Exception
- Signature: public function __construct($page,$init_options)
Parameters:
- $page
- $init_options
- Default Value: array()
count()
- Signature: abstract public function count($swiss)
Parameters:
- $swiss
current()
- Signature: public function current($swiss)
Parameters:
- $swiss
displayValues()
- Signature: public function displayValues($contentNode,$path,$action,$transient_options)
Parameters:
- $contentNode
- $path
- $action
- $transient_options
- Default Value: array()
getAttribute()
- Signature: public function getAttribute($swiss,$attr)
Parameters:
- $swiss
- $attr
getChildNames()
- Signature: abstract public function getChildNames($swiss)
Parameters:
- $swiss
getChildStorage()
- Signature: abstract public function getChildStorage($swiss,$child,$create)
Parameters:
- $swiss
- $child
- Default Value: null
- $create
- Default Value: false
getChildType()
- Signature: abstract public function getChildType($swiss,$child)
Parameters:
- $swiss
- $child
getDescription()
- Signature: public function getDescription($swiss)
Parameters:
- $swiss
getDisplayName()
- Signature: public function getDisplayName($swiss)
Parameters:
- $swiss
getPage()
Get the page
- Signature: public function getPage()
- Returns: I2CE_Page
getPath()
Gets the string representation of a path the path
- Signature: static public function getPath($path,$addComponents)
- Returns: string
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- Default Value: null
getPathComponents()
Gets the array representation of the config node path the path
- Signature: static public function getPathComponents($path,$addComponents)
- Returns: array
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- Default Value: null
getRootStorage()
- Signature: abstract protected function getRootStorage()
getRootType()
- Signature: protected function getRootType()
getStatus()
- Signature: abstract public function getStatus($swiss)
Parameters:
- $swiss
getStorage()
- Signature: public function getStorage($path,$add_path)
Parameters:
- $path
- $add_path
- Default Value: null
getStoredOptions()
- Signature: public function getStoredOptions($key)
Parameters:
- $key
- Default Value: null
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.
- Signature: public function getSwiss($path,$add_path)
- Returns: I2CE_Swiss or null
Parameters:
- mixed $path
Either a string which is a config node path or an array of path components. - $add_path
- Default Value: null
getURLQueryString()
- Signature: public function getURLQueryString($additional,$remove)
Parameters:
- $additional
- Default Value: array()
- $remove
- Default Value: array()
getURLRoot()
- Signature: abstract public function getURLRoot($action)
Parameters:
- $action
- Default Value: null
hasAttribute()
- 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
- Signature: static public function humanText($text)
- Returns: string
Parameters:
- $text
key()
- Signature: abstract public function key($swiss)
Parameters:
- $swiss
next()
- Signature: abstract public function next($swiss)
Parameters:
- $swiss
rewind()
- Signature: abstract public function rewind($swiss)
Parameters:
- $swiss
setRedirect()
- Signature: public function setRedirect($redirect)
Parameters:
- $redirect
setRootSwiss()
- Signature: public function setRootSwiss()
setStoredOptions()
- Signature: public function setStoredOptions($options)
Parameters:
- $options
setupDisplay()
- Signature: protected function setupDisplay($swiss,$action,$contentNode)
Parameters:
- $swiss
- $action
- $contentNode
updateValues()
- Signature: public function updateValues($vals,$do_redirect,$transact)
Parameters:
- $vals
- $do_redirect
- Default Value: true
- $transact
- Default Value: false
valid()
- Signature: abstract public function valid($swiss)
Parameters:
- $swiss