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
string
Table name
string
File name of page containing the table
string
URL to return to after processing form
string
Database to use
display(string $mode) : void
string
Mode 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.
string
Mode this function is working in (form, values)
string
getDisplayStringPrefix(string $mode) : string
string
Mode this function is working in (form, values)
string
getDisplayStringSuffix(string $mode) : string
string
Mode this function is working in (form, values)
string
show(string $mode) : void
deprecated | use display() |
---|
string
Mode 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.
bool
true if displaying is allowed.redirectToUrl(string $message) : void
Usually this happens after an insert/modify or delete
string
Message 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 |
---|