WACT_COMPONENT
[ class tree: WACT_COMPONENT ] [ index: WACT_COMPONENT ] [ all elements ]

Class: TagWidget

Source Location: /framework/template/widgets/widgets.inc.php

http://wact.sourceforge.net/index.php/TagWidget

Class Overview

Component
   |
   --TagComponent
      |
      --TagWidget

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

Variables

Methods


Inherited Variables

Inherited Methods

Class: TagComponent

TagComponent::getAttribute()
Returns the value of an attribute, given it's name
TagComponent::getCanonicalAttributeName()
returns the case-preserving, case-insensitive name of an attribute
TagComponent::getClientId()
Returns the value of the ID attribute
TagComponent::hasAttribute()
Check to see whether a named attribute exists
TagComponent::removeAttribute()
Remove an attribute from the list
TagComponent::renderAttributes()
Writes the contents of the attributes to the screen, using htmlspecialchars to convert entities in values.
TagComponent::setAttribute()
Sets an attribute

Class: Component

Component::addChild()
Adds a reference to a child component to this component, using it's ID attribute as the child array key
Component::findChild()
Returns a child component given it's ID.
Component::findChildByClass()
Returns the first child component matching the supplied WACT_TEMPLATE Component PHP class name
Component::findParentByClass()
Recursively searches through parents of this component searching for a given WACT_TEMPLATE component PHP class name
Component::getChild()
Same as find child, except raises error if child is not found
Component::getServerId()
Returns the ID of the component, as defined in the template tags ID attribute
Component::render()
Outputs the component, rendering any child components as well This method will only ever be called on components that support Dynamic rendering.
Component::setChildDataSource()
set the data source of a child component, or raise an error if the child is not found.

Class Details

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

img


Class Variables


$closing = true

Whether the tag is closing or not
access:  private
Type:   boolean

$tag =

Name of the tag
access:  private
Type:   string

Class Methods


constructor TagWidget

Constructs TagWidget

TagWidget TagWidget( string $tag, [boolean $closing = true])

API Tags:

access:  public

Parameters:

string   $tag   name of tag
boolean   $closing   whether tag is closing

method addChild

Override parent method to prevent use of children

void addChild( )

API Tags:

access:  public
Overrides Component::addChild() (Adds a reference to a child component to this component, using it's ID attribute as the child array key)

method render

Outputs the tag

void render( )

API Tags:

access:  public
Overrides Component::render() (Outputs the component, rendering any child components as well This method will only ever be called on components that support Dynamic rendering.)
WACT: Copyright 2003 Procata, Inc. Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html)
Documentation generated on Sun, 28 Nov 2004 19:51:42 -0800 by phpDocumentor 1.2.3