Database-enabled TForm automatically loads and saves data
Located in /form.inc.php (line 14)
| Class | Description |
|---|---|
| TDBForm | Database-enabled TForm automatically loads and saves data |
Any errors that occured during validation
Optional text output after <form..> for adding extra fields or whatever.
used by descendants.
The form method
The name of the form
If the form has been validated. One of FORM_STATE_*
Adds an object to the form
Loads values passed in the GET string as default values.
Should be in the array _def[], indexed by field name
Generates an md5 that will uniquely identify the form, based on static
settings (ie values of data in the form will not affect the md5)
Gets the next line for output, or resets it to the first element.
The first time this is called, it will return the first line, then the following lines.
Returns the value of a field object
Gets the raw values for storing into database.
Displays the basic opening <form> tag and hidden fields for form backend.
Generically outputs the form. Usually you will use the other output functions to display a form mixed with your own HTML. This code can provide a good foundation, however.
Restores existing values to the form from submitted values
Manually generate an error for a form field
Sets the form error field to the specified text, and sets the form state to invalid
Validates all the data in the form, and if there are any errors
stores them in $this->errors
Checks if this form was submitted already
Documentation generated on Thu, 27 Nov 2003 14:59:00 -0500 by phpDocumentor 1.2.3