EntryFormA class to handle displaying a form on the page (for editing) or a structured layout of non-editable content (for viewing), with a simple switch to flip from view mode to edit mode.
Located in /DataEntry.php (line 296)
EntryForm
EntryForm
(string $action, &$record, [ $editing = false], objectref $record, boolean $editmode)
string
DataEntryField
( $format, [ $ftype = ''], [ $base_fname = ''], [ $attributes = ''], [ $prefix = ''])
string
DataEntryLine
( $prompt, $field_format, [ $ftype = ''], [ $fname = ''], [ $attributes = ''], [ $prefix = ''])
string
MultiEntryLine
( $prompt_options, $prompt_name, $default_prompt, $format, [ $ftype = ''], [ $fname = ''], [ $attributes = ''], $prefix)
void
SimpleForm
([ $new_format = '<span class="prompt">%s:</span> <span class="entry">%s</span>'])
void
TempLineFormat
([string $new_format = '<span class="prompt">%s:</span> <span class="entry">%s</span>'])
static _ParseAttributes (line 494)
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.
Constructor EntryForm (line 356)
Initialise a new data-entry form.
BreakLine (line 466)
A utility function for a heading line within a data entry table
DataEntryField (line 525)
A utility function for a data entry line within a table
DataEntryLine (line 601)
A utility function for a data entry line within a table
EndForm (line 458)
Return the HTML fragment to end the form.
HelpInCell (line 396)
Set the line format to have help displayed in it's own separate cell
HelpInLine (line 388)
Set the line format to have help displayed in the same cell as the entry field.
HiddenField (line 478)
A utility function for a hidden field within a data entry table
MultiEntryLine (line 614)
A utility function for a data entry line, where the prompt is a drop-down.
NoHelp (line 380)
Set the line format to have no help display
PopulateForm (line 370)
Initialise some more of the forms fields, possibly with a prefix
RevertLineFormat (line 421)
Revert the line format to what was in place before the last TempLineFormat call.
SimpleForm (line 404)
Set the line format to an extremely simple CSS based prompt / field layout.
StartForm (line 432)
Start the actual HTML form. Return the fragment to do this.
SubmitButton (line 591)
A utility function for a submit button within a data entry table
TempLineFormat (line 413)
Set the line format to a temporary one that we can revert from.
Documentation generated on Mon, 20 Sep 2010 12:52:18 +1200 by phpDocumentor 1.4.3