internal package
Foswiki::Form::FieldDefinition ClassMethod
new(%...) ObjectMethod
finish() $topicObject
- the topic being edited
Render the field for editing. Returns two chunks of HTML; the
$col0html
is appended to the HTML for the first column in the
form table, and the $col1html
is used as the content of the second column.
undef
.
$meta
as a set of hidden fields.
ObjectMethod
populateMetaDataFromQuery( $query, $meta, $old ) → ($bValid, $bPresent) $query
, a $meta
object, and an array of $old
field entries,
then populate the $meta with a row for this field definition, taking the
content from the query if it's there, otherwise from $old or failing that,
from the default defined for the type. Refuses to update mandatory fields
that have an empty value.
Return $bValid true if the value in $meta was updated (either from the
query or from a default in the form.
Return $bPresent true if a value was present in the query (even it was undef)
ObjectMethod
createMetaKeyValues( $query, $meta, $keyvalues ) → $keyvalues ObjectMethod
renderForDisplay($format, $value, $attrs, $meta) → $html format
- the format to be expanded. The following tokens are available: $title
- title of the form field. if this is not available from the value, then the default title is taken from the form field definition.
$value
- expanded to the (protected) value of the form field before mapping
$attributes
- from the field definition
$type
- from the field definition
$size
- from the field definition
$definingTopic
- topic in which the field is defined
$value
- the scalar value of the field
$attrs
- attributes. Fields used are: showhidden
- set to override H attribute
newline
- replace newlines with this (default <br>)
bar
- replace vbar with this (default |)
break
- boolean, set to hyphenate
protectdollar
- set to escape $
usetitle
- if set, use this for the title rather than the title from the form definition
ObjectMethod
getDisplayValue($value) → $html ![]() |
© 2025 D.Soost & D.Marxsen - All rights reserved © Of all articles by authors Trademarks are the property of their respective owners © Logo by Wikipedia, modified by Administrator | Impressum Disclaimer Datenschutzerklärung |