ModelCommon module
Setting
A model in the Common module, with 13 members for templates, 9 API properties and 23 members for admin templates.
Templates view
Properties 12
Take no arguments.
-
#
getEditor() -
?string -
#
getId() -
?int -
#
getModule() -
?string -
#
getType() -
?string -
#
getKey() -
?string -
#
getValue() -
?string -
#
getValues() -
?Collection<SettingValue> -
#
isRequired() -
?bool -
#
getRegex() -
?string -
#
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.
-
#
getSettingValueWithKey(string $key) -
?SettingValue - Check if the setting has a value with the specified key and return it
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 9
Read-only values on the record.
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 21
Take no arguments.
-
#
getEditor() -
?string -
#
getId() -
?int -
#
getModule() -
?string -
#
getType() -
?string -
#
getKey() -
?string -
#
getValue() -
?string -
#
getValues() -
?Collection<SettingValue> -
#
isRequired() -
?bool -
#
getRegex() -
?string -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
-
#
getDescription()Admin only -
?string -
#
getHelp()Admin only -
?string -
#
getPossibleValues()Admin only -
?array -
#
getAvailableModels()Admin only -
?Collection -
#
getDisplayProperty()Admin only -
?string -
#
getDefaultValue()Admin only -
?mixed -
#
isUserSettable()Admin only -
bool -
#
getEntity()Admin only -
?string -
#
getCleanRegex()Admin only -
string - Gets HTML encoded regex. NOTE in JS and HTML we don't need delimiters (e.g., / or ~) at the start and end, nor trailing modifiers (e.g., i, m). This method detects and strips them if present, extracting the raw pattern.
Methods 2
Take arguments. The API serialises only getters that need none.
-
#
getSettingValueWithKey(string $key) -
?SettingValue - Check if the setting has a value with the specified key and return it
No members match the filter.