Class SimpleWidget

Description

Form element.

Located in /tag.php (line 231)

SimpleTag
   |
   --SimpleWidget
Direct descendents
Class Description
 class SimpleTextTag Text, password and hidden field.
 class SimpleSubmitTag Submit button as input tag.
 class SimpleImageSubmitTag Image button as input tag.
 class SimpleButtonTag Submit button as button tag.
 class SimpleTextAreaTag Content tag for text area.
 class SimpleUploadTag File upload widget.
 class SimpleSelectionTag Drop down widget.
 class MultipleSelectionTag Drop down widget.
 class SimpleOptionTag Option for selection field.
 class SimpleRadioButtonTag Radio button.
 class SimpleCheckboxTag Checkbox widget.
Variable Summary
 mixed $_is_set
 mixed $_label
 mixed $_value
Method Summary
 SimpleWidget SimpleWidget (string $name, hash $attributes)
 string getDefault ()
 string getName ()
 string getValue ()
 boolean isLabel (string $label)
 void resetValue ()
 void setLabel (string $label)
 boolean setValue (string $value)
 void write ( &$encoding, SimpleEncoding $encoding)
Variables
mixed $_is_set (line 234)
mixed $_label (line 233)
mixed $_value (line 232)

Inherited Variables

Inherited from SimpleTag

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

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

Accessor for default value parsed with the tag.

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

Redefined in descendants as:
getName (line 255)

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

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

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:
isLabel (line 319)

Reads external or internal label.

  • return: True is match.
  • access: public
boolean isLabel (string $label)
  • string $label: Label to test.

Redefined in descendants as:
resetValue (line 299)

Resets the form element value back to the default.

  • access: public
void resetValue ()
setLabel (line 309)

Allows setting of a label externally, say by a label tag.

  • access: public
void setLabel (string $label)
  • string $label: Label to attach.
setValue (line 288)

Sets the current form element value.

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

Redefined in descendants as:
write (line 328)

Dispatches the value into the form encoded packet.

  • access: public
void write ( &$encoding, SimpleEncoding $encoding)

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::getText()
 SimpleTag::isId()
 SimpleTag::isPrivateContent()
 SimpleTag::_setAttribute()

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