Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

ButtonField Class Reference
[Basic Fields]

Inheritance diagram for ButtonField:

AbstractField Field List of all members.

Detailed Description

A button.

Author:
Scott Peshak

Definition at line 7 of file button-field.inc.php.

Public Member Functions

 __construct ($name, &$parentForm, array $attribs=array('type'=> 'button'))
 Constructor.
 drawInput ()
 Draw the button.
 __set ($name, $value)
 Magic setter.
 validate ()
 Validate Needed to fully implement Field, but nothing is done for a button.
 getData ()
 Get data from field Needed to fully implement Field, but nothing is done for a button.
 getSqlImpl ()
 Get SQL string Needed to fully implement Field, but nothing is done for a button.
 hasError ()
 Check for errors.

Protected Attributes

 $type = 'button'
 Button type, one of 'reset', 'submit', 'button'.


Member Function Documentation

ButtonField::__construct name,
&$  parentForm,
array $  attribs = array('type' => 'button')
 

Constructor.

Parameters:
$name Name of button
$parentForm Form object that the field belongs to.
$attribs array of extra attributes.

Definition at line 17 of file button-field.inc.php.

ButtonField::__set name,
value
 

Magic setter.

Parameters:
$name Name of the member to set
$value Value to set

Reimplemented from AbstractField.

Definition at line 36 of file button-field.inc.php.

References $type.

ButtonField::drawInput  ) 
 

Draw the button.

Implements Field.

Definition at line 25 of file button-field.inc.php.

References AbstractField::extrasAsAttributes().

ButtonField::getData  ) 
 

Get data from field Needed to fully implement Field, but nothing is done for a button.

Reimplemented from AbstractField.

Definition at line 60 of file button-field.inc.php.

ButtonField::getSqlImpl  ) 
 

Get SQL string Needed to fully implement Field, but nothing is done for a button.

Reimplemented from AbstractField.

Definition at line 69 of file button-field.inc.php.

ButtonField::hasError  ) 
 

Check for errors.

Returns:
Boolean true because buttons can't have errors

Reimplemented from AbstractField.

Definition at line 78 of file button-field.inc.php.

ButtonField::validate  ) 
 

Validate Needed to fully implement Field, but nothing is done for a button.

Reimplemented from AbstractField.

Definition at line 51 of file button-field.inc.php.


Member Data Documentation

ButtonField::$type = 'button' [protected]
 

Button type, one of 'reset', 'submit', 'button'.

Definition at line 9 of file button-field.inc.php.

Referenced by __set().


The documentation for this class was generated from the following file:
Generated on Fri Oct 27 12:26:41 2006 for BaseJumper by doxygen 1.3.9.1