Class SimpleSelectionTag

Description

Drop down widget.

Located in /tag.php (line 699)

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

Inherited Variables

Inherited from SimpleWidget

SimpleWidget::$_is_set
SimpleWidget::$_label
SimpleWidget::$_value

Inherited from SimpleTag

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

Starts with attributes only.

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

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

Adds an option tag to a selection field.

  • access: public
void addTag ( &$tag, SimpleOptionTag $tag)

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

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

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

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::isLabel()
 SimpleWidget::resetValue()
 SimpleWidget::setLabel()
 SimpleWidget::setValue()
 SimpleWidget::write()

Inherited From SimpleTag

 SimpleTag::SimpleTag()
 SimpleTag::addContent()
 SimpleTag::addTag()
 SimpleTag::expectEndTag()
 SimpleTag::getAttribute()
 SimpleTag::getChildElements()
 SimpleTag::getContent()
 SimpleTag::getTagName()
 SimpleTag::getText()
 SimpleTag::isId()
 SimpleTag::isPrivateContent()
 SimpleTag::_setAttribute()

Documentation generated on Sun, 04 May 2008 09:22:15 -0500 by phpDocumentor 1.3.0