ModelCommon module
InputType
A model in the Common module, with 18 members for templates, 15 API properties and 30 members for admin templates.
Templates view
Properties 18
Take no arguments.
-
#
getEntity() -
?string - Get the entity specified for this input type. Returns null if no entity was specified, or the input type does not have record or records as category.
-
#
getEntityParentId() -
?string - Gets ID of parent for the entity specified for this input type. Returns null if the input type does not have record or records as category or if no parent was specified.
-
#
getId() -
?int -
#
getName() -
?string -
#
getCategory() -
?string -
#
getEditor() -
?string -
#
getRegex() -
?string -
#
getMaxLength() -
?int -
#
getPossibleValues() -
?Collection<InputTypePossibleValue> -
#
getLayoutAreas() -
?Collection<LayoutArea> -
#
getCustomFields() -
?Collection<CustomField> - Returns custom fields (not their values) that use this input type.
-
#
getParameters() -
?array -
#
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 15
Read-only values on the record.
-
#
entity -
?string - Get the entity specified for this input type. Returns null if no entity was specified, or the input type does not have record or records as category.
-
#
entityParentId -
?string - Gets ID of parent for the entity specified for this input type. Returns null if the input type does not have record or records as category or if no parent was specified.
-
#
id -
?int -
#
name -
?string -
#
category -
?string -
#
editor -
?string -
#
regex -
?string -
#
maxLength -
?int -
#
possibleValues -
?Collection<InputTypePossibleValue> -
#
layoutAreas -
?Collection<LayoutArea> -
#
customFields -
?Collection<CustomField> - Returns custom fields (not their values) that use this input type.
-
#
parameters -
?array
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 29
Take no arguments.
-
#
getDefaultValuesList()Admin only -
array - Gets default content values array that is suitable to be used in <select> tag.
In this case every key equals to its value. -
#
getEntity() -
?string - Get the entity specified for this input type. Returns null if no entity was specified, or the input type does not have record or records as category.
-
#
getEntityParentId() -
?string - Gets ID of parent for the entity specified for this input type. Returns null if the input type does not have record or records as category or if no parent was specified.
-
#
getId() -
?int -
#
getName() -
?string -
#
getCategory() -
?string -
#
getEditor() -
?string -
#
getRegex() -
?string -
#
getMaxLength() -
?int -
#
getPossibleValues() -
?Collection<InputTypePossibleValue> -
#
getLayoutAreas() -
?Collection<LayoutArea> -
#
getCustomFields() -
?Collection<CustomField> - Returns custom fields (not their values) that use this input type.
-
#
getParameters() -
?array -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
Methods 1
Take arguments. The API serialises only getters that need none.
-
#
getAvailableRecordsNames(?int $siteId)Admin only -
array - Get multidimensional array with id and text as columns for use in tree selects
No members match the filter.