Class SimpleCheckboxTag

Description

Checkbox widget.

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

SimpleTag
   |
   --SimpleWidget
      |
      --SimpleCheckboxTag
Method Summary
 SimpleCheckboxTag SimpleCheckboxTag (hash $attributes)
 boolean expectEndTag ()
 string getDefault ()
 boolean setValue (string $value)
Variables
Methods
Constructor SimpleCheckboxTag (line 563)

Starts with attributes only.

SimpleCheckboxTag SimpleCheckboxTag (hash $attributes)
  • hash $attributes: Attribute names and string values.
expectEndTag (line 575)

Tag contains no content.

  • return: False.
  • access: public
boolean expectEndTag ()

Redefinition of:
SimpleTag::expectEndTag()
Check to see if the tag can have both start and end tags with content in between.
getDefault (line 603)

Accessor for starting value. The default value is "on".

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

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

The only allowed value in the one in the "value" attribute. The default for this attribute is "on".

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

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, 11 Feb 2005 18:14:14 +0000 by phpDocumentor 1.3.0RC3