Public Member Functions | |
Field ($name, $label, $type, $value, $width) | |
Class constructor. | |
getName () | |
Get the field name. | |
getLabel () | |
Get the field label. | |
getType () | |
Get the field type. | |
getValue () | |
Get the field value. | |
getWidth () | |
Get the field width. | |
setName ($name) | |
Set the field name. | |
setLabel ($label) | |
Set the field label. | |
setType ($type) | |
Set the field type. | |
setValue ($value) | |
Set the field value. | |
setWidth ($width) | |
Set the field width. | |
setHTML ($html) | |
Set the HTML output of the field. | |
html () | |
Output the system as an HTML form. | |
Private Attributes | |
$name | |
$label | |
$value | |
$type | |
$width | |
$html |
This class is an abstraction layer for SQL columns in HTML
Field::Field | ( | $ | name, | |
$ | label, | |||
$ | type, | |||
$ | value, | |||
$ | width | |||
) |
Class constructor.
Initialize the class.
name | The name of the field. | |
label | The label the field will have in HTML. | |
type | The HTML type of the field (text, combobox, textarea). | |
value | The current value of the field. | |
width | The width of the field when generating HTML output. |
Field::getName | ( | ) |
Get the field name.
This function returns the field name.
Field::getLabel | ( | ) |
Get the field label.
This function returns the field label.
Field::getType | ( | ) |
Get the field type.
This function returns the field type.
Field::getValue | ( | ) |
Get the field value.
This function returns the field value.
Field::getWidth | ( | ) |
Get the field width.
This function returns the field width.
Field::setName | ( | $ | name | ) |
Set the field name.
This function sets the field name.
The | new field name. |
Field::setLabel | ( | $ | label | ) |
Set the field label.
This function sets the field label.
The | new field label. |
Field::setType | ( | $ | type | ) |
Set the field type.
This function sets the field type.
The | new field type. |
Field::setValue | ( | $ | value | ) |
Set the field value.
This function sets the field value.
The | new field value. |
Field::setWidth | ( | $ | width | ) |
Set the field width.
This function sets the field width.
The | new field width. |
Field::setHTML | ( | $ | html | ) |
Set the HTML output of the field.
This will set a fixed HTML output for the field, regardless of it's value and type.
html | The HTML formatted text for the field. |
Field::html | ( | ) |
Output the system as an HTML form.
This function will output the system as an HTML form.
Field::$name [private] |
Field::$label [private] |
Field::$value [private] |
Field::$type [private] |
Field::$width [private] |
Field::$html [private] |