[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/wact/src/components/ -> WactRuntimeComponent.class.php (summary)

(no description)

File Size: 157 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WactRuntimeComponent:: (13 methods):
  __construct()
  getId()
  findChild()
  getChild()
  getRootComponent()
  getDatasource()
  getDatasourceComponent()
  setChildDataSource()
  setChildDataSet()
  findChildByClass()
  findParentByClass()
  addChild()
  render()


Class: WactRuntimeComponent  - X-Ref

Base class for runtime components.<br />
Note that components that output XML tags should not inherit directly from
WactRuntimeComponent but rather the child WactRuntimeTagComponent<br />
Note that in the comments for this class, the terms parent and child
refer to the given components relative position in a template's
hierarchy, not to the PHP class hierarchy

__construct($id)   X-Ref
No description

getId()   X-Ref
No description

findChild($ServerId)   X-Ref
Returns a child component given it's ID.<br />
Note this is a potentially expensive operation if dealing with
many components, as it calls the findChild method of children
based on alphanumeric order: strcasecmp(). Attempt to call it via
the nearest known component to the required child.


getChild($ServerId)   X-Ref
Same as findChild, except raises error if child is not found


getRootComponent($item)   X-Ref
No description

getDatasource()   X-Ref
No description

getDatasourceComponent()   X-Ref
No description

setChildDataSource($path, $datasource)   X-Ref
Set the data source of a child component, or raise an error
if the child is not found.


setChildDataSet($path, $datasource)   X-Ref
No description

findChildByClass($class)   X-Ref
Returns the first child component matching the supplied class name


findParentByClass($class)   X-Ref
Recursively searches through parents of this component searching for a given class name


addChild($child)   X-Ref
Adds a reference to a child component to this component, using it's
ID attribute as the child array key


render()   X-Ref
Outputs the component, rendering any child components as well
This method will only ever be called on components that support
Dynamic rendering.




Generated: Mon Dec 1 03:56:46 2008 Cross-referenced by PHPXref 0.7