Package =TWiki::FormObject representing a single form definition.On this page:
ClassMethod new ($session,$web,$form)
ObjectMethod renderForEdit ($web,$topic,$meta,$useDefaults) -> $html
ObjectMethod *renderFieldForEdit ($fieldDef,$web,$topic,$value) -> $html
ObjectMethod renderHidden ($meta,$useDefaults) -> $html
ObjectMethod cgiName ($field) -> $stringGenerate the 'name' of the CGI parameter used to represent a field. | ||||||||
Changed: | ||||||||
< < | ObjectMethod *getFieldValuesFromQuery ($query,$metaObject,$handleMandatory) -> $metaObject | |||||||
> > | ObjectMethod *getFieldValuesFromQuery ($query,$metaObject,$initialiseMissing) -> ($seen,\@missing) | |||||||
Extract new values for form fields from a query.
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
For each field, if there is a value in the query, use it. Otherwise if there is already entry for the field in the meta, keep it. | ||||||||
Changed: | ||||||||
< < | Otherwise, if $handleMandatory, initialise the field to '' and set it in the meta. | |||||||
> > | ||||||||
Added: | ||||||||
> > | Returns the number of fields which had values provided by the query, and a references to an array of the names of mandatory fields that were missing from the query. | |||||||
ObjectMethod *isTextMergeable ($name) -> $boolean
ObjectMethod getField ($name) -> \%row
StaticMethod *renderForDisplay ($templates,$meta)
|
Package =TWiki::FormObject representing a single form definition.On this page:
ClassMethod new ($session,$web,$form)
ObjectMethod renderForEdit ($web,$topic,$meta,$useDefaults) -> $html
ObjectMethod *renderFieldForEdit ($fieldDef,$web,$topic,$value) -> $html
ObjectMethod renderHidden ($meta,$useDefaults) -> $html
ObjectMethod cgiName ($field) -> $stringGenerate the 'name' of the CGI parameter used to represent a field.ObjectMethod *getFieldValuesFromQuery ($query,$metaObject,$handleMandatory) -> $metaObjectExtract new values for form fields from a query.
ObjectMethod *isTextMergeable ($name) -> $boolean
ObjectMethod getField ($name) -> \%row
StaticMethod *renderForDisplay ($templates,$meta)
|