TKFormInput Class Reference
[Form Elements]

Represents an HTML <input> tag. More...

Inheritance diagram for TKFormInput:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct ($type, $name, $value="")
 Creates new form input.

Static Public Member Functions

static createFromXML ($attrs, $contents, $node)

Protected Member Functions

 renderComponent ($class, $style, $events, $id)


Detailed Description

Represents an HTML <input> tag.

All input-tag elements are created with this one class. You simply specify the type in the constructor.

Properties:
  • type string: input type (e.g. 'text', 'checkbox', etc.)

Definition at line 13 of file TKFormInput.php5.


Constructor & Destructor Documentation

TKFormInput::__construct ( type,
name,
value = "" 
)

Creates new form input.

Type is required, but if not given, then most webbrowsers default to 'text'

Parameters:
$type [string]: input type
$name [string]: element name, for form processing
$value [string]: initial/default value of element

Reimplemented in TKCheckBox, and TKRadioButton.

Definition at line 23 of file TKFormInput.php5.

References TKComponent::addProperty().


Member Function Documentation

static TKFormInput::createFromXML ( attrs,
contents,
node 
) [static]

For internal use only.

Reimplemented from TKFormElement.

Definition at line 48 of file TKFormInput.php5.

TKFormInput::renderComponent ( class,
style,
events,
id 
) [protected]

For internal use only.

Reimplemented from TKComponent.

Reimplemented in TKCheckBox, and TKRadioButton.

Definition at line 36 of file TKFormInput.php5.

References TKFormElement::getStandardProperties().


The documentation for this class was generated from the following file:

Generated on Wed Nov 24 02:07:00 2010 for Common by  doxygen 1.5.6