Form with basic functionality, from which other form classes derive.
This class provides a basic form. This includes : - showing a form and the included fields.
| category | Form |
|---|---|
| package | Formaid |
| author | Dieter Adriaenssens |
| copyright | 2006-2013 Dieter Adriaenssens |
| license | GPL |
| link | http://formaid.sourceforge.net/ |
__construct(string $table_name, string $file_name, string $return_url, string $database) : void
stringTable name
stringFile name of page containing the table
stringURL to return to after processing form
stringDatabase to use
display(string $mode) : void
stringMode this function is working in (form, value)
displayValues() : void
Execute display() method in "values" mode. In this mode, no form is displayed, but the values of the record are printed on the webpage. The values can't be edited.
getDisplayString(string $mode) : string
If the mode is form, a form is shown : this includes a title, form tags and form fields (input boxes, ...) If the mode is value, only the values of a record are shown, there is no possibility to change and submit values.
stringMode this function is working in (form, values)
stringgetDisplayStringPrefix(string $mode) : string
stringMode this function is working in (form, values)
stringgetDisplayStringSuffix(string $mode) : string
stringMode this function is working in (form, values)
stringshow(string $mode) : void
| deprecated | use display() |
|---|
stringMode this function is working in (form, value)
showValues() : void
Execute display() method in "values" mode. In this mode, no form is displayed, but the values of the record are printed on the webpage. The values can't be edited.
| deprecated | use displayValues() |
|---|
allowShow() : bool
If the Privilege on this form (allow_show) is set, it is allowed to display the form.
booltrue if displaying is allowed.redirectToUrl(string $message) : void
Usually this happens after an insert/modify or delete
stringMessage for user to pass in the url
$data : array
| access | public |
|---|
$filename : string
| access | public |
|---|
$privileges : array
| access | public |
|---|
$return_url : string
| access | public |
|---|
$sql_table : string
| access | public |
|---|
$title : string
| access | public |
|---|
$db_connection : object
| access | protected |
|---|
$encoding : string
| access | protected |
|---|