|
Andrew's Web Libraries (AWL) 0.64
|
Public Member Functions | |
| __construct ( $action, &$record, $editing=false) | |
| PopulateForm (&$record, $prefix="") | |
| NoHelp () | |
| HelpInLine () | |
Static Public Member Functions | |
| HelpInCell () | |
Public Attributes | |
| $action | |
| $record | |
| $EditMode | |
| $name | |
| $class | |
| $break_line_format | |
| $table_line_format | |
| $saved_line_format | |
Definition at line 334 of file DataEntry.php.
| EntryForm::__construct | ( | $action, | |
| & | $record, | ||
| $editing = false ) |
#- Initialise a new data-entry form.
| string | $action | The action when the form is submitted. |
| objectref | $record | A reference to the database object we are displaying / editing. |
| boolean | $editmode | Whether we are editing. |
Definition at line 394 of file DataEntry.php.
|
static |
Set the line format to have help displayed in it's own separate cell
Set the line format to a temporary one that we can revert from.
| string | $new_format | The (optional) new format we will temporarily use. |
Revert the line format to what was in place before the last TempLineFormat call.
Start the actual HTML form. Return the fragment to do this.
| array | $extra_attributes | Extra key/value pairs for the FORM tag. |
Return the HTML fragment to end the form.
A utility function for a heading line within a data entry table
A utility function for a hidden field within a data entry table
| string | $fname | The name of the field. |
| string | $fvalue | The value of the field. |
Internal function for parsing the type extra on a field.
If the '_help' attribute is not set it will be assigned the value of the 'title' attribute, if there is one.
If the 'class' attribute is not set it will be assigned to 'flookup', 'fselect', etc, according to the field type.
A utility function for a data entry line within a table
For some forms we prefix the field name with xxxx so it doesn't collide with the real DB field name.
If it is a date, then format it according to the current user's date format type
A utility function for a submit button within a data entry table
A utility function for a data entry line within a table
A utility function for a data entry line, where the prompt is a drop-down.
Definition at line 434 of file DataEntry.php.
| EntryForm::HelpInLine | ( | ) |
Set the line format to have help displayed in the same cell as the entry field.
Definition at line 426 of file DataEntry.php.
| EntryForm::NoHelp | ( | ) |
Set the line format to have no help display
Definition at line 418 of file DataEntry.php.
| EntryForm::PopulateForm | ( | & | $record, |
| $prefix = "" ) |
Initialise some more of the forms fields, possibly with a prefix
| objectref | $record | A reference to the database object we are displaying / editing. |
| string | $prefix | A prefix to prepend to the field name. |
Definition at line 408 of file DataEntry.php.
| EntryForm::$action |
Definition at line 343 of file DataEntry.php.
| EntryForm::$break_line_format |
Definition at line 373 of file DataEntry.php.
| EntryForm::$class |
Definition at line 367 of file DataEntry.php.
| EntryForm::$EditMode |
Definition at line 355 of file DataEntry.php.
| EntryForm::$name |
Definition at line 361 of file DataEntry.php.
| EntryForm::$record |
Definition at line 349 of file DataEntry.php.
| EntryForm::$saved_line_format |
Definition at line 385 of file DataEntry.php.
| EntryForm::$table_line_format |
Definition at line 379 of file DataEntry.php.