Class TextField

Description

The textfield widget primitive

Designed for strings to be edited in a text field widget in the HTML form, but is inherited for TimeField, IdField etc

Located in /inc/formslib/textfield.php (line 31)

Field
   |
   --TextField
Direct descendents
Class Description
IdField a textfield object designed to hold the database key (or id) field
PasswdField a text field that is designed to hold passwords
TextArea a textarea widget
Bitmask a table of checkboxes for different options that are condensed into a single value by bitmask
CurrencyField adaptation of the textfield widget primitive to currency input
Method Summary
TextField TextField (string $name, [string $longname = ''], [string $description = ''])
void displayInTable ([ $cols = 3])
void hidden ()
void selectable ()
void selectedValue ()
void _textCleaner ( $value)
Variables
Methods
Constructor TextField (line 40)

Create a new field object, designed to be superclasses

TextField TextField (string $name, [string $longname = ''], [string $description = ''])
  • string $name: the name of the field (db name, and html field name
  • string $longname: long name to be used in the label of the field in display
  • string $description: used in the html title or longdesc for the field
displayInTable (line 59)
void displayInTable ([ $cols = 3])
  • $cols

Redefinition of:
Field::displayInTable()
render this form widget in an html table

Redefined in descendants as:
hidden (line 104)
void hidden ()

Redefinition of:
Field::hidden()
html representation of this field as a "hidden" form widget
selectable (line 89)
void selectable ()

Redefinition of:
Field::selectable()
return an html representation of the widget

Redefined in descendants as:
selectedValue (line 85)
void selectedValue ()

Redefinition of:
Field::selectedValue()
return the current value as text and the widget as a hidden form element
_textCleaner (line 45)
void _textCleaner ( $value)
  • $value

Inherited Methods

Inherited From Field

Field::Field()
Field::display()
Field::displayInTable()
Field::getValue()
Field::hidden()
Field::isValid()
Field::log()
Field::selectable()
Field::selectedValue()
Field::set()
Field::setattr()
Field::setEditable()
Field::setNamebase()
Field::sqlSetStr()
Field::text_dump()
Field::update()
Field::__clone()

Documentation generated on Tue, 06 Mar 2007 10:02:01 +0000 by phpDocumentor 1.3.0