Declaration:
<? class InputField ?>
Description:
This is the base class for all form input fields. A form field has a value and
can have a validator. The form renderer tag (e.g., HTMLShowForm for HTMLDocuments)
will automatically render the field's representation with the help of field renderer returned in the call
to InputField::getRenderer().
See also:
Authors:
Methods:
-
__construct()
Create a new input filed with the given value and validator
-
getForm()
Get the owning form
-
getRenderer()
Return the renderer of this field for a particular document type
-
getValue()
Get the value of the field
-
isValid()
Returns true if the field has not been assigned a validator, otherwise
it returns result of validation
-
setForm()
Set the form that ownt this field. Normally you will not call this method directly
-
setValue()
Set the value of the field. If the parameter is NULL, this may mean that the form is resetting the field's value
after incorrect submission
|
|