Class SimpleWidget

Description

Form element.

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

SimpleTag
   |
   --SimpleWidget
Direct descendents
Class Description
 class SimpleTextTag Text, password and hidden field.
 class SimpleSubmitTag Submit button.
 class SimpleTextAreaTag Content tag for text area.
 class SimpleCheckboxTag Checkbox widget.
 class SimpleSelectionTag Drop down widget.
 class MultipleSelectionTag Drop down widget.
 class SimpleOptionTag Option for selection field.
 class SimpleRadioButtonTag Radio button.
Variable Summary
 mixed $_is_set
 mixed $_value
Method Summary
 SimpleWidget SimpleWidget (string $name, hash $attributes)
 string getDefault ()
 string getName ()
 string getValue ()
 void resetValue ()
 boolean setValue (string $value)
Variables
mixed $_is_set (line 187)
mixed $_value (line 186)

Inherited Variables

Inherited from SimpleTag

SimpleTag::$_attributes
SimpleTag::$_content
SimpleTag::$_name
Methods
Constructor SimpleWidget (line 195)

Starts with a named tag with attributes only.

SimpleWidget SimpleWidget (string $name, hash $attributes)
  • string $name: Tag name.
  • hash $attributes: Attribute names and string values.
getDefault (line 216)

Accessor for default value parsed with the tag.

  • return: Parsed value.
  • access: public
string getDefault ()

Redefined in descendants as:
getName (line 207)

Accessor for name submitted as the key in GET/POST variables hash.

  • return: Parsed value.
  • access: public
string getName ()
getValue (line 234)

Accessor for currently set value or default if none.

  • return: Value set by form or default if none.
  • access: public
string getValue ()

Redefined in descendants as:
resetValue (line 258)

Resets the form element value back to the default.

  • access: public
void resetValue ()
setValue (line 247)

Sets the current form element value.

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

Redefined in descendants as:

Inherited Methods

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:37 +0000 by phpDocumentor 1.3.0RC3