|
Andrew's Web Libraries (AWL) 0.64
|
Public Member Functions | |
| __construct ( $intype, $inname, $attributes="", $current_value="") | |
| Render () | |
| new_lookup ( $attributes) | |
Static Public Member Functions | |
| static | BuildOptionList ( $qry, $current='', $location='options', $parameters=false) |
Public Attributes | |
| $fname | |
| $ftype | |
| $current | |
| $attributes | |
| $rendered | |
Definition at line 38 of file DataEntry.php.
| EntryField::__construct | ( | $intype, | |
| $inname, | |||
| $attributes = "", | |||
| $current_value = "" ) |
#- Initialise an EntryField, used for data entry.
The following types of fields are possible:
The $attributes array is useful to set specific HTML attributes within the HTML tag used for the entry field however $attribute keys named starting with an underscore ('') affect the field operation rather than the HTML. For the 'select' field type, these are simply used as the keys / values for the selection (with the '' removed), but other cases are more complex:
| text | $intype | The type of field: select | lookup | date | checkbox | textarea | file | button | password (anything else is dealt with as "text") |
| text | $inname | The name of the field. |
| text | $attributes | An associative array of extra attributes to be applied to the field. Optional, but generally important. Some $attribute keys have special meaning, while others are simply added as HTML attributes to the field. |
| text | $current_value | The current value to use to initialise the field. Optional. |
Definition at line 137 of file DataEntry.php.
|
static |
Build an option list from the query.
| string | $current | Default selection of drop down box (optional) |
| string | $location | for debugging purposes |
| array | $parameters | an array further parameters, including 'maxwidth' => 20 to set a maximum width |
Definition at line 294 of file DataEntry.php.
| EntryField::new_lookup | ( | $attributes | ) |
Function called indirectly when a new EntryField of type 'lookup' is created.
| array | $attributes | The attributes array that was passed in to the new EntryField() constructor. |
Definition at line 283 of file DataEntry.php.
| EntryField::Render | ( | ) |
Render an EntryField into HTML
Definition at line 162 of file DataEntry.php.
| EntryField::$attributes |
Definition at line 69 of file DataEntry.php.
| EntryField::$current |
Definition at line 63 of file DataEntry.php.
| EntryField::$fname |
Definition at line 47 of file DataEntry.php.
| EntryField::$ftype |
Definition at line 53 of file DataEntry.php.
| EntryField::$rendered |
Definition at line 75 of file DataEntry.php.