Andrew's Web Libraries (AWL)
|
Public Member Functions | |
__construct ( $action, &$record, $editing=false) | |
PopulateForm (&$record, $prefix="") | |
NoHelp () | |
HelpInLine () | |
HelpInCell () | |
SimpleForm ( $new_format='< span class="prompt">%s:</span > < span class="entry">%s</span >') | |
TempLineFormat ( $new_format='< span class="prompt">%s:</span > < span class="entry">%s</span >') | |
RevertLineFormat () | |
StartForm ( $extra_attributes='') | |
EndForm () | |
BreakLine ( $text='') | |
HiddenField ($fname, $fvaluei, $fid=null) | |
DataEntryField ( $format, $ftype='', $base_fname='', $attributes='', $prefix='') | |
SubmitButton ( $fname, $fvalue, $attributes='') | |
DataEntryLine ( $prompt, $field_format, $ftype='', $fname='', $attributes='', $prefix='') | |
MultiEntryLine ( $prompt_options, $prompt_name, $default_prompt, $format, $ftype='', $fname='', $attributes='', $prefix='') | |
Static Public Member Functions | |
_ParseAttributes ( $ftype='', $attributes='') | |
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 |
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.
Definition at line 532 of file DataEntry.php.
EntryForm::BreakLine | ( | $text = '' | ) |
A utility function for a heading line within a data entry table
Definition at line 504 of file DataEntry.php.
EntryForm::DataEntryField | ( | $format, | |
$ftype = '', | |||
$base_fname = '', | |||
$attributes = '', | |||
$prefix = '' ) |
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
Definition at line 563 of file DataEntry.php.
EntryForm::DataEntryLine | ( | $prompt, | |
$field_format, | |||
$ftype = '', | |||
$fname = '', | |||
$attributes = '', | |||
$prefix = '' ) |
A utility function for a data entry line within a table
Definition at line 639 of file DataEntry.php.
EntryForm::EndForm | ( | ) |
Return the HTML fragment to end the form.
Definition at line 496 of file DataEntry.php.
EntryForm::HelpInCell | ( | ) |
Set the line format to have help displayed in it's own separate cell
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::HiddenField | ( | $fname, | |
$fvaluei, | |||
$fid = null ) |
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. |
Definition at line 516 of file DataEntry.php.
EntryForm::MultiEntryLine | ( | $prompt_options, | |
$prompt_name, | |||
$default_prompt, | |||
$format, | |||
$ftype = '', | |||
$fname = '', | |||
$attributes = '', | |||
$prefix = '' ) |
A utility function for a data entry line, where the prompt is a drop-down.
Definition at line 652 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::RevertLineFormat | ( | ) |
Revert the line format to what was in place before the last TempLineFormat call.
Definition at line 459 of file DataEntry.php.
EntryForm::SimpleForm | ( | $new_format = '<span class="prompt">%s:</span> <span class="entry">%s</span>' | ) |
Set the line format to an extremely simple CSS based prompt / field layout.
Definition at line 442 of file DataEntry.php.
EntryForm::StartForm | ( | $extra_attributes = '' | ) |
Start the actual HTML form. Return the fragment to do this.
array | $extra_attributes | Extra key/value pairs for the FORM tag. |
Definition at line 470 of file DataEntry.php.
EntryForm::SubmitButton | ( | $fname, | |
$fvalue, | |||
$attributes = '' ) |
A utility function for a submit button within a data entry table
Definition at line 629 of file DataEntry.php.
EntryForm::TempLineFormat | ( | $new_format = '<span class="prompt">%s:</span> <span class="entry">%s</span>' | ) |
Set the line format to a temporary one that we can revert from.
string | $new_format | The (optional) new format we will temporarily use. |
Definition at line 451 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.