Class SimpleRadioGroup

Description

A group of tags with the same name within a form.

Used for radio buttons.

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


	
			
Variable Summary
 mixed $_widgets
Method Summary
 SimpleRadioGroup SimpleRadioGroup ()
 void addWidget (SimpleWidget &$widget)
 string/boolean getDefault ()
 string/boolean getValue ()
 boolean setValue (string $value)
 boolean _valueIsPossible (string $value)
Variables
mixed $_widgets (line 886)
Methods
Constructor SimpleRadioGroup (line 892)

Starts empty.

  • access: public
SimpleRadioGroup SimpleRadioGroup ()
addWidget (line 901)

Adds a tag to the group.

  • access: public
void addWidget (SimpleWidget &$widget)
getDefault (line 963)

Accessor for starting value that is active.

  • return: Value of first checked widget or false if none.
  • access: public
string/boolean getDefault ()
getValue (line 948)

Accessor for current selected widget or false if none.

  • return: Value attribute or content of opton.
  • access: public
string/boolean getValue ()
setValue (line 913)

Each tag is tried in turn until one is successfully set. The others will be unchecked if successful.

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

Tests to see if a value is allowed.

  • return: True if a valid value.
  • access: private
boolean _valueIsPossible (string $value)
  • string $value: Attempted value.

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