ModelForms module
BaseElement
Element
A model in the Forms module, with 22 members for templates, 19 API properties and 22 members for admin templates.
Templates view
Properties 22
Take no arguments.
-
#
getEntity() -
?string -
#
getId() -
?int -
#
getName() -
?string - Gets element name. It could be used in html to identify input, e.g. '<input name="{getName()}" ...>'.
-
#
getHelp() -
?string - Gets help text for the element. It could be used as a tooltip or in HTML as a title attribute, e.g. '<input title="{getHelp()}" ...>'.
-
#
getEditor() -
?string -
#
getDefaultValue() -
?string -
#
getPlaceholder() -
?string -
#
isRequired() -
?bool -
#
getRegex() -
?string -
#
getPosition() -
?int -
#
getSettings() -
?array -
#
getRevision() -
?FormRevision -
#
getValidationRules() -
?Collection<ValidationRule> -
#
getValidationConditions() -
?Collection<ValidationCondition> -
#
getParent() -
?ElementGroup -
#
getElementId() -
?string -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
No members match the filter.
API & Jobs view
API & JobsEach property is a key in REST API responses and job payloads. Its name is the template getter without get, is or has. Methods that need arguments are not available here.
Properties 19
Read-only values on the record.
-
#
entity -
?string -
#
id -
?int -
#
name -
?string - Gets element name. It could be used in html to identify input, e.g. '<input name="{getName()}" ...>'.
-
#
help -
?string - Gets help text for the element. It could be used as a tooltip or in HTML as a title attribute, e.g. '<input title="{getHelp()}" ...>'.
-
#
editor -
?string -
#
defaultValue -
?string -
#
placeholder -
?string -
#
required -
?bool -
#
regex -
?string -
#
position -
?int -
#
settings -
?array -
#
revision -
?FormRevision -
#
validationRules -
?Collection<ValidationRule> -
#
validationConditions -
?Collection<ValidationCondition> -
#
parent -
?ElementGroup -
#
elementId -
?string
No members match the filter.
Admin view
AdminAvailable in cdna-admin templates. Copy an admin template into your site repository to change how this record is edited.
Properties 22
Take no arguments.
-
#
getEntity() -
?string -
#
getId() -
?int -
#
getName() -
?string - Gets element name. It could be used in html to identify input, e.g. '<input name="{getName()}" ...>'.
-
#
getHelp() -
?string - Gets help text for the element. It could be used as a tooltip or in HTML as a title attribute, e.g. '<input title="{getHelp()}" ...>'.
-
#
getEditor() -
?string -
#
getDefaultValue() -
?string -
#
getPlaceholder() -
?string -
#
isRequired() -
?bool -
#
getRegex() -
?string -
#
getPosition() -
?int -
#
getSettings() -
?array -
#
getRevision() -
?FormRevision -
#
getValidationRules() -
?Collection<ValidationRule> -
#
getValidationConditions() -
?Collection<ValidationCondition> -
#
getParent() -
?ElementGroup -
#
getElementId() -
?string -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
No members match the filter.