|
|
 |
 |
 |
|
dbListField |
dbListField (
string |
$title |
string |
$name |
string |
$table |
mixed |
$fields |
string |
$extraSQL = null, |
mixed |
$validator = null, |
string |
$onTitle = "Selected", |
string |
$offTitle = "Available", |
integer |
$size = 4, |
mixed |
$extra = null, |
boolean |
$verticalMode = null |
) |
Arguments:
Name |
Description |
$title |
Title of the field |
$name |
Name of the field |
$table |
The name of the table where the values should be loaded from |
$fields |
String or array with the field(s) which are retrieved from the table and put into the select field |
$extraSQL |
Some extra SQL which will be included right achter the "FROM <table>" statement. With this you can order the items, join tables, etc. |
$validator |
This can either be the name of your own validation function or the constant name of a predefined validator function. For more information about validators see Validators.
It is also possible to use a method as a validation function. In this case you should pass an array where the first item is the object and the second item the name of the method. |
$onTitle |
The title which will be displayed above the field where the items are in which will be saved. By default this is "Selected" but is language depented. |
$offTitle |
The title which will be displayed above the field where the items are displayed where the user can select from. By default this is "Available" but is language depented. |
$size |
The number of items which are displayed (the height of the field) |
$extra |
This can be extra information which will be included in the fields html tag. You can add for example some CSS or javascript. |
$verticalMode |
indicates whether the two selectfields should be stacked horizontally or vertically. |
Description:
See also: ListField
Latest change: 25 March 08 / 11:34
Comments
|
|
|
|