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 334)
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 532)
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 394)
Initialise a new data-entry form.
BreakLine (line 504)
A utility function for a heading line within a data entry table
DataEntryField (line 563)
A utility function for a data entry line within a table
DataEntryLine (line 639)
A utility function for a data entry line within a table
EndForm (line 496)
Return the HTML fragment to end the form.
HelpInCell (line 434)
Set the line format to have help displayed in it's own separate cell
HelpInLine (line 426)
Set the line format to have help displayed in the same cell as the entry field.
HiddenField (line 516)
A utility function for a hidden field within a data entry table
MultiEntryLine (line 652)
A utility function for a data entry line, where the prompt is a drop-down.
NoHelp (line 418)
Set the line format to have no help display
PopulateForm (line 408)
Initialise some more of the forms fields, possibly with a prefix
RevertLineFormat (line 459)
Revert the line format to what was in place before the last TempLineFormat call.
SimpleForm (line 442)
Set the line format to an extremely simple CSS based prompt / field layout.
StartForm (line 470)
Start the actual HTML form. Return the fragment to do this.
SubmitButton (line 629)
A utility function for a submit button within a data entry table
TempLineFormat (line 451)
Set the line format to a temporary one that we can revert from.
Documentation generated on Fri, 13 Jan 2012 23:40:15 +1300 by phpDocumentor 1.4.3