[ Index ]

PHP Cross Reference of Web Application Component Toolkit

title

Body

[close]

/framework/template/widgets/ -> widgets.inc.php (summary)

(no description)

Version: $Id: widgets.inc.php,v 1.1 2004/02/11 22:25:12 jeffmoore Exp $
File Size: 156 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 classes

textwidget:: (3 methods):
  textwidget()
  addchild()
  render()

tagwidget:: (3 methods):
  tagwidget()
  addchild()
  render()

tagcontainerwidget:: (2 methods):
  tagcontainerwidget()
  render()


Class: textwidget  - 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.

textwidget($text)   X-Ref
Constructs TextComponent

access: public
param: string text to add

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

access: public
return: void

render()   X-Ref
Outputs the text Widget.

access: public
return: void

Class: tagwidget  - X-Ref

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

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

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

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

access: public
return: void

render()   X-Ref
Outputs the tag

access: public
return: void

Class: tagcontainerwidget  - X-Ref

Allows a tag to be created, which can contain children

tagcontainerwidget($tag)   X-Ref
Constructs TagContainerWidget

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

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

access: public
return: void



Generated: Sun Nov 28 19:36:09 2004 Cross-referenced by PHPXref 0.5