Class SimpleSelectionTag

Description

Drop down widget.

Located in /tag.php (line 806)

SimpleTag
   |
   --SimpleWidget
      |
      --SimpleSelectionTag
Method Summary
 SimpleSelectionTag __construct (hash $attributes)
 void addContent (string $content)
 void addTag (SimpleOptionTag $tag)
 string getDefault ()
 string getValue ()
 boolean setValue (string $value)
Methods
Constructor __construct (line 815)

Starts with attributes only.

SimpleSelectionTag __construct (hash $attributes)
  • hash $attributes: Attribute names and string values.

Redefinition of:
SimpleWidget::__construct()
Starts with a named tag with attributes only.
addContent (line 837)

Text within the selection element is ignored.

  • access: public
void addContent (string $content)
  • string $content: Ignored.

Redefinition of:
SimpleTag::addContent()
Appends string content to the current content.
addTag (line 826)

Adds an option tag to a selection field.

  • access: public
void addTag (SimpleOptionTag $tag)

Redefinition of:
SimpleTag::addTag()
Adds an enclosed tag to the content.
getDefault (line 847)

Scans options for defaults. If none, then the first option is selected.

  • return: Selected field.
  • access: public
string getDefault ()

Redefinition of:
SimpleWidget::getDefault()
Accessor for default value parsed with the tag.
getValue (line 881)

Accessor for current selection value.

  • return: Value attribute or content of opton.
  • access: public
string getValue ()

Redefinition of:
SimpleWidget::getValue()
Accessor for currently set value or default if none.
setValue (line 865)

Can only set allowed values.

  • return: True if allowed.
  • access: public
boolean setValue (string $value)
  • string $value: New choice.

Redefinition of:
SimpleWidget::setValue()
Sets the current form element value.

Inherited Methods

Inherited From SimpleWidget

 SimpleWidget::__construct()
 SimpleWidget::getDefault()
 SimpleWidget::getName()
 SimpleWidget::getValue()
 SimpleWidget::isLabel()
 SimpleWidget::resetValue()
 SimpleWidget::setLabel()
 SimpleWidget::setValue()
 SimpleWidget::write()

Inherited From SimpleTag

 SimpleTag::__construct()
 SimpleTag::addContent()
 SimpleTag::addTag()
 SimpleTag::addTags()
 SimpleTag::expectEndTag()
 SimpleTag::getAttribute()
 SimpleTag::getChildElements()
 SimpleTag::getContent()
 SimpleTag::getTagName()
 SimpleTag::getText()
 SimpleTag::isId()
 SimpleTag::isPrivateContent()
 SimpleTag::setAttribute()

Documentation generated on Sun, 31 Oct 2010 16:32:37 -0500 by phpDocumentor 1.4.3