TaniPHP
[ class tree: TaniPHP ] [ index: TaniPHP ] [ all elements ]

Class: Field

Source Location: /fields.php

Class Overview


Base class for HTML fields.


Author(s):

  • Dumitru Postoronca

Variables

Methods


Child classes:

TextField
Text field
TextareaField
Textarea field
RadioField
Radio field
FileField
File field
DayField
Day field
MonthField
Month field
YearField
Year field
DateField
Creates a composite field for date selection.
HourField
Hour field
MinuteField
Minute field
SecondField
Second field
TimeField
Creates a composite field for time selection.

Class Details

[line 23]
Base class for HTML fields.

Base class for HTML fields. One field consists of a Label tag and another tag use for input that can be a select/text/textarea tag. Do not confuse Field::input attribute with the Input tag. Field::input is a tag object that can be of any of Tag's subtypes.




Tags:

author:  Dumitru Postoronca
abstract:  


[ Top ]


Class Variables

$input =

[line 37]

The tag that will be used to retreive data from the user.

The tag that will be used to retreive data from the user. Can be a Text/Select/Textarea/etc. tag.



Type:   object


[ Top ]

$label =

[line 30]

A Label tag instance

A Label tag instance



Type:   object


[ Top ]



Class Methods


method getHtml [line 55]

string getHtml( )

Renders the object in HTML code

Renders the object in HTML code




[ Top ]

method out [line 42]

void out( )

Outputs the field in XHTML format

Outputs the field in XHTML format




Overridden in child classes as:

DateField::out()
Outputs the field in XHTML format
TimeField::out()
Outputs the field in XHTML format

[ Top ]


Documentation generated on Fri, 16 Dec 2005 13:16:38 +0200 by phpDocumentor 1.3.0RC4