Class: I2CE SwissFactory: Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
Line 22: Line 22:
==Methods==
==Methods==
===__construct()===
===__construct()===
construct a swiss swiss factory and create it if it doesn't exist.
construct a swiss swiss factory and create it if it doesn't exist. @throws Exception
@throws Exception
*Signature: public function __construct($page,$init_options)
*Signature: public function __construct($page,$init_options)
Parameters:
*Parameters:
*$page  
*$page  
*$init_options  
*$init_options  
**Default Value: array()
***Default Value: array()
===count()===
===count()===
*Signature: abstract public function count($swiss)
*Signature: abstract public function count($swiss)
Parameters:
*Parameters:
*$swiss  
*$swiss  
===current()===
===current()===
*Signature: public function current($swiss)
*Signature: public function current($swiss)
Parameters:
*Parameters:
*$swiss  
*$swiss  
===displayValues()===
===displayValues()===
*Signature: public function displayValues($contentNode,$path,$action,$transient_options)
*Signature: public function displayValues($contentNode,$path,$action,$transient_options)
Parameters:
*Parameters:
*$contentNode  
*$contentNode  
*$path  
*$path  
*$action  
*$action  
*$transient_options  
*$transient_options  
**Default Value: array()
***Default Value: array()
===getAttribute()===
===getAttribute()===
*Signature: public function getAttribute($swiss,$attr)
*Signature: public function getAttribute($swiss,$attr)
Parameters:
*Parameters:
*$swiss  
*$swiss  
*$attr  
*$attr  
===getChildNames()===
===getChildNames()===
*Signature: abstract public function getChildNames($swiss)
*Signature: abstract public function getChildNames($swiss)
Parameters:
*Parameters:
*$swiss  
*$swiss  
===getChildStorage()===
===getChildStorage()===
*Signature: abstract public function getChildStorage($swiss,$child,$create)
*Signature: abstract public function getChildStorage($swiss,$child,$create)
Parameters:
*Parameters:
*$swiss  
*$swiss  
*$child  
*$child  
**Default Value: null
***Default Value: null
*$create  
*$create  
**Default Value: false
***Default Value: false
===getChildType()===
===getChildType()===
*Signature: abstract public function getChildType($swiss,$child)
*Signature: abstract public function getChildType($swiss,$child)
Parameters:
*Parameters:
*$swiss  
*$swiss  
*$child  
*$child  
===getDescription()===
===getDescription()===
*Signature: public function getDescription($swiss)
*Signature: public function getDescription($swiss)
Parameters:
*Parameters:
*$swiss  
*$swiss  
===getDisplayName()===
===getDisplayName()===
*Signature: public function getDisplayName($swiss)
*Signature: public function getDisplayName($swiss)
Parameters:
*Parameters:
*$swiss  
*$swiss  
===getPage()===
===getPage()===
Line 81: Line 80:
===getPath()===
===getPath()===
Gets the string representation of a path
Gets the string representation of a path
the path
*Signature: static public function getPath($path,$addComponents)
*Signature: static public function getPath($path,$addComponents)
*Parameters:
** [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $path <br/>Either a string or an arrray of path components
** [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $addComponents <br/>Defaults to null.  If a string or an array of path components  then it is appended to the path
***Default Value: null
*Returns: [http://www.php.net/manual/en/language.types.string.php string ]
*Returns: [http://www.php.net/manual/en/language.types.string.php string ]
Parameters:
* [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $path<br/>Either a string or an arrray of path components
* [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $addComponents<br/>Defaults to null.  If a string or an array of path components  then it is appended to
**Default Value: null
===getPathComponents()===
===getPathComponents()===
Gets the array representation of the config node path
Gets the array representation of the config node path
the path
*Signature: static public function getPathComponents($path,$addComponents)
*Signature: static public function getPathComponents($path,$addComponents)
*Parameters:
** [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $path <br/>Either a string or an arrray of path components
** [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $addComponents <br/>Defaults to null.  If a string or an array of path components  then it is appended to the path
***Default Value: null
*Returns: [http://www.php.net/manual/en/language.types.array.php array ]
*Returns: [http://www.php.net/manual/en/language.types.array.php array ]
Parameters:
* [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $path<br/>Either a string or an arrray of path components
* [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $addComponents<br/>Defaults to null.  If a string or an array of path components  then it is appended to
**Default Value: null
===getRootStorage()===
===getRootStorage()===
*Signature: abstract protected function getRootStorage()
*Signature: abstract protected function getRootStorage()
Line 103: Line 100:
===getStatus()===
===getStatus()===
*Signature: abstract public function getStatus($swiss)
*Signature: abstract public function getStatus($swiss)
Parameters:
*Parameters:
*$swiss  
*$swiss  
===getStorage()===
===getStorage()===
*Signature: public function getStorage($path,$add_path)
*Signature: public function getStorage($path,$add_path)
Parameters:
*Parameters:
*$path  
*$path  
*$add_path  
*$add_path  
**Default Value: null
***Default Value: null
===getStoredOptions()===
===getStoredOptions()===
*Signature: public function getStoredOptions($key)
*Signature: public function getStoredOptions($key)
Parameters:
*Parameters:
*$key  
*$key  
**Default Value: null
***Default Value: null
===getSwiss()===
===getSwiss()===
get the swiss for a path
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.
@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)
*Signature: public function getSwiss($path,$add_path)
*Returns: [[Class: I2CE_Swiss | I2CE_Swiss]] or null
*Parameters:
Parameters:
** [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $path <br/>Either a string which is a config node path or an array of path components.
* [http://www.php.net/manual/en/language.pseudo-types.php mixed ] $path<br/>Either a string which is a config node path or an array of path components.
*$add_path  
*$add_path  
**Default Value: null
***Default Value: null
*Returns: [[Class: I2CE_Swiss | I2CE_Swiss]]<br/>or null
===getURLQueryString()===
===getURLQueryString()===
*Signature: public function getURLQueryString($additional,$remove)
*Signature: public function getURLQueryString($additional,$remove)
Parameters:
*Parameters:
*$additional  
*$additional  
**Default Value: array()
***Default Value: array()
*$remove  
*$remove  
**Default Value: array()
***Default Value: array()
===getURLRoot()===
===getURLRoot()===
*Signature: abstract public function getURLRoot($action)
*Signature: abstract public function getURLRoot($action)
Parameters:
*Parameters:
*$action  
*$action  
**Default Value: null
***Default Value: null
===hasAttribute()===
===hasAttribute()===
*Signature: public function hasAttribute($swiss,$attr)
*Signature: public function hasAttribute($swiss,$attr)
Parameters:
*Parameters:
*$swiss  
*$swiss  
*$attr  
*$attr  
===humanText()===
===humanText()===
Tries to turn a string (such as a magic data key) into  human text
Tries to turn a string (such as a magic data key) into  human text @param $text
@param $text
*Signature: static public function humanText($text)
*Signature: static public function humanText($text)
*Parameters:
*$text
*Returns: [http://www.php.net/manual/en/language.types.string.php string ]
*Returns: [http://www.php.net/manual/en/language.types.string.php string ]
Parameters:
*$text
===key()===
===key()===
*Signature: abstract public function key($swiss)
*Signature: abstract public function key($swiss)
Parameters:
*Parameters:
*$swiss  
*$swiss  
===next()===
===next()===
*Signature: abstract public function next($swiss)
*Signature: abstract public function next($swiss)
Parameters:
*Parameters:
*$swiss  
*$swiss  
===rewind()===
===rewind()===
*Signature: abstract public function rewind($swiss)
*Signature: abstract public function rewind($swiss)
Parameters:
*Parameters:
*$swiss  
*$swiss  
===setRedirect()===
===setRedirect()===
*Signature: public function setRedirect($redirect)
*Signature: public function setRedirect($redirect)
Parameters:
*Parameters:
*$redirect  
*$redirect  
===setRootSwiss()===
===setRootSwiss()===
Line 169: Line 164:
===setStoredOptions()===
===setStoredOptions()===
*Signature: public function setStoredOptions($options)
*Signature: public function setStoredOptions($options)
Parameters:
*Parameters:
*$options  
*$options  
===setupDisplay()===
===setupDisplay()===
*Signature: protected function setupDisplay($swiss,$action,$contentNode)
*Signature: protected function setupDisplay($swiss,$action,$contentNode)
Parameters:
*Parameters:
*$swiss  
*$swiss  
*$action  
*$action  
Line 179: Line 174:
===updateValues()===
===updateValues()===
*Signature: public function updateValues($vals,$do_redirect,$transact)
*Signature: public function updateValues($vals,$do_redirect,$transact)
Parameters:
*Parameters:
*$vals  
*$vals  
*$do_redirect  
*$do_redirect  
**Default Value: true
***Default Value: true
*$transact  
*$transact  
**Default Value: false
***Default Value: false
===valid()===
===valid()===
*Signature: abstract public function valid($swiss)
*Signature: abstract public function valid($swiss)
Parameters:
*Parameters:
*$swiss  
*$swiss  




[[Category:Class Documentation]]
[[Category:Class Documentation]]

Revision as of 22:42, 16 October 2009

This article desrcibes the1 class I2CE_SwissFactory.

I2CE_SwissFactory

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

  • 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

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

  • 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)
  • Parameters:
    • mixed $path
      Either a string which is a config node path or an array of path components.
  • $add_path
      • Default Value: null
  • Returns: I2CE_Swiss
    or 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)
  • Parameters:
  • $text
  • Returns: string

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