[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/wact/src/widgets/ -> widgets.inc.php (summary)

Widgets are runtime components which have no compile time template tag. They can be created and added by the PHP script controlling the template.

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

Defines 3 classes

WactTextWidget:: (3 methods):
  __construct()
  addChild()
  render()

WactTagWidget:: (3 methods):
  __construct()
  addChild()
  render()

WactTagContainerWidget:: (2 methods):
  __construct()
  render()


Class: WactTextWidget  - X-Ref

Allows plain text to be added
Widgets are runtime components which have no compile time template tag.
They can be created and added by the PHP script controlling the template.

__construct($text)   X-Ref
Constructs TextComponent

param: string text to add

addChild()   X-Ref
Override parent method to prevent use of children

return: void

render()   X-Ref
Outputs the text Widget.

return: void

Class: WactTagWidget  - X-Ref

Allows a tag to be created, which cannot contain children e.g. img

__construct($tag,$closing=true)   X-Ref
Constructs TagWidget

param: string name of tag
param: boolean whether tag is closing

addChild()   X-Ref
Override parent method to prevent use of children

return: void

render()   X-Ref
Outputs the tag

return: void

Class: WactTagContainerWidget  - X-Ref

Allows a tag to be created, which can contain children

__construct($tag)   X-Ref
Constructs TagContainerWidget

param: string name of tag
param: boolean whether tag is closing

render()   X-Ref
Outputs the tag, rendering any child components as well

return: void



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