ModelHooks module
Hook
A model in the Hooks module, with 23 members for templates, 20 API properties and 37 members for admin templates.
Templates view
Properties 23
Take no arguments.
-
#
getAgentActionId() -
?int - Id of the first agent action on this hook, or null when the hook has none. Resolved once per model instance: the admin batch listing asks this question for every row it renders, and the hook model is object-cached, so the actions scan runs once per distinct hook rather than once per batch. Loop-contained actions are covered — every action carries the hook FK regardless of nesting.
-
#
getId() -
?int -
#
getName() -
?string -
#
getText() -
?string -
#
isSynchronous() -
?bool -
#
getBatchPersistence() -
?string -
#
getCreated() -
?DateTime -
#
getModified() -
?DateTime -
#
getPublished() -
?DateTime -
#
isPublished() -
bool -
#
getActions() -
?Collection<BaseAction> -
#
getEntityEvents() -
?Collection<EntityEvent> -
#
getWebEvents() -
?Collection<WebEvent> -
#
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 20
Read-only values on the record.
-
#
agentActionId -
?int - Id of the first agent action on this hook, or null when the hook has none. Resolved once per model instance: the admin batch listing asks this question for every row it renders, and the hook model is object-cached, so the actions scan runs once per distinct hook rather than once per batch. Loop-contained actions are covered — every action carries the hook FK regardless of nesting.
-
#
id -
?int -
#
name -
?string -
#
text -
?string -
#
synchronous -
?bool -
#
batchPersistence -
?string -
#
created -
?DateTime -
#
modified -
?DateTime -
#
published -
?DateTime -
#
published -
bool -
#
actions -
?Collection<BaseAction> -
#
entityEvents -
?Collection<EntityEvent> -
#
webEvents -
?Collection<WebEvent>
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 37
Take no arguments.
-
#
getAgentActionId() -
?int - Id of the first agent action on this hook, or null when the hook has none. Resolved once per model instance: the admin batch listing asks this question for every row it renders, and the hook model is object-cached, so the actions scan runs once per distinct hook rather than once per batch. Loop-contained actions are covered — every action carries the hook FK regardless of nesting.
-
#
getId() -
?int -
#
getName() -
?string -
#
getText() -
?string -
#
isSynchronous() -
?bool -
#
getBatchPersistence() -
?string -
#
getCreated() -
?DateTime -
#
getModified() -
?DateTime -
#
getPublished() -
?DateTime -
#
isPublished() -
bool -
#
getActions() -
?Collection<BaseAction> -
#
getEntityEvents() -
?Collection<EntityEvent> -
#
getWebEvents() -
?Collection<WebEvent> -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
-
#
getConfiguredEntities()Admin only -
array - Get a list of entities this hook is configured to react on
-
#
getEventsDisplay()Admin only -
string - Get a displayable version of the configured events for this hook
No members match the filter.