Class SimpleSelectionTag

Description

Drop down widget.

Located in /libraries/pear/simpletest/tag.php (line 476)

SimpleTag
   |
   --SimpleWidget
      |
      --SimpleSelectionTag
Variable Summary
 mixed $_choice
 mixed $_options
Method Summary
 SimpleSelectionTag SimpleSelectionTag (hash $attributes)
 void addContent (string $content)
 void addTag (SimpleOptionTag &$tag)
 string getDefault ()
 string getValue ()
 boolean setValue (string $value)
Variables
mixed $_choice (line 478)
mixed $_options (line 477)

Inherited Variables

Inherited from SimpleWidget

SimpleWidget::$_is_set
SimpleWidget::$_value

Inherited from SimpleTag

SimpleTag::$_attributes
SimpleTag::$_content
SimpleTag::$_name
Methods
Constructor SimpleSelectionTag (line 485)

Starts with attributes only.

SimpleSelectionTag SimpleSelectionTag (hash $attributes)
  • hash $attributes: Attribute names and string values.
addContent (line 507)

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 496)

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 516)

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 550)

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 534)

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::SimpleWidget()
 SimpleWidget::getDefault()
 SimpleWidget::getName()
 SimpleWidget::getValue()
 SimpleWidget::resetValue()
 SimpleWidget::setValue()

Inherited From SimpleTag

 SimpleTag::SimpleTag()
 SimpleTag::addContent()
 SimpleTag::addTag()
 SimpleTag::expectEndTag()
 SimpleTag::getAttribute()
 SimpleTag::getChildElements()
 SimpleTag::getContent()
 SimpleTag::getTagName()
 SimpleTag::_keysToLowerCase()
 SimpleTag::_setAttribute()

Documentation generated on Fri, 10 Dec 2004 18:26:36 +0000 by phpDocumentor 1.3.0RC3