ModelWorkflows module
RevisionBranch
A model in the Workflows module, with 24 members for templates, 19 API properties and 25 members for admin templates.
Templates view
Properties 22
Take no arguments.
-
#
getLastRevision() -
?Revision - Get the last revision of the branch Resolved via an
ORDER BY id DESC LIMIT 1query — reading it from the record's revisions collection would hydrate every revision of the record. -
#
getTranslatedEntityName() -
string - Get the translated entity name for the branch, or the custom entity definition name if defined
-
#
isAllowingChanges() -
bool - Check if the record may be edited in the current workflow step of this branch
-
#
getId() -
?int -
#
getName() -
?string -
#
getEntity() -
?string -
#
getRecordId() -
?int -
#
getComments() -
?Collection<BranchComment> -
#
getTransitions() -
?Collection<BranchTransition> -
#
getApprovals() -
?Collection<BranchApproval> -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
Methods 2
Take arguments. The API serialises only getters that need none.
-
#
isTransitionApproved(Transition $transition) -
bool - Checks whether the transition can be done due to branch approvals
-
#
getRevisions(?int $limit, ?int $offset) -
?Collection - Get the revisions for the record associated with this branch, ordered by id ascending. Pass a limit/offset to fetch a bounded window instead of the full set — loading all revisions of a branch with a large history exhausts memory.
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.
-
#
lastRevision -
?Revision - Get the last revision of the branch Resolved via an
ORDER BY id DESC LIMIT 1query — reading it from the record's revisions collection would hydrate every revision of the record. -
#
translatedEntityName -
string - Get the translated entity name for the branch, or the custom entity definition name if defined
-
#
allowingChanges -
bool - Check if the record may be edited in the current workflow step of this branch
-
#
id -
?int -
#
name -
?string -
#
entity -
?string -
#
recordId -
?int -
#
comments -
?Collection<BranchComment> -
#
transitions -
?Collection<BranchTransition> -
#
approvals -
?Collection<BranchApproval>
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 23
Take no arguments.
-
#
getLastRevision() -
?Revision - Get the last revision of the branch Resolved via an
ORDER BY id DESC LIMIT 1query — reading it from the record's revisions collection would hydrate every revision of the record. -
#
getTranslatedEntityName() -
string - Get the translated entity name for the branch, or the custom entity definition name if defined
-
#
isAllowingChanges() -
bool - Check if the record may be edited in the current workflow step of this branch
-
#
getId() -
?int -
#
getName() -
?string -
#
getEntity() -
?string -
#
getRecordId() -
?int -
#
getComments() -
?Collection<BranchComment> -
#
getTransitions() -
?Collection<BranchTransition> -
#
getApprovals() -
?Collection<BranchApproval> -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
-
#
getTransitionsApprovals()Admin only -
array - Get the approvals for all possible transitions for the current step of this branch
Methods 2
Take arguments. The API serialises only getters that need none.
-
#
isTransitionApproved(Transition $transition) -
bool - Checks whether the transition can be done due to branch approvals
-
#
getRevisions(?int $limit, ?int $offset) -
?Collection - Get the revisions for the record associated with this branch, ordered by id ascending. Pass a limit/offset to fetch a bounded window instead of the full set — loading all revisions of a branch with a large history exhausts memory.
No members match the filter.