ModelHooks module
ConditionIf
Condition Entity
A model in the Hooks module, with 26 members for templates, 23 API properties and 35 members for admin templates.
Templates view
Properties 26
Take no arguments.
-
#
isFirstIf() -
bool - Check whether the condition is an IF condition, i.e. is at position 1 in the condition block
-
#
isElseIf() -
bool - Check whether the condition is an ELSE IF condition, i.e. is at position >= 2 in the condition block
-
#
getDisplayType() -
string -
#
getChildren() -
Collection<BaseAction> -
#
getType() -
string - Get the type of the action, which is the object name without namespace for the action
-
#
getId() -
?int -
#
getName() -
?string -
#
getText() -
?string -
#
getPosition() -
?int -
#
getData() -
?array -
#
getCreated() -
?DateTime -
#
getModified() -
?DateTime -
#
getPublished() -
?DateTime -
#
isPublished() -
bool -
#
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 23
Read-only values on the record.
-
#
firstIf -
bool - Check whether the condition is an IF condition, i.e. is at position 1 in the condition block
-
#
elseIf -
bool - Check whether the condition is an ELSE IF condition, i.e. is at position >= 2 in the condition block
-
#
displayType -
string -
#
children -
Collection<BaseAction> -
#
id -
?int -
#
name -
?string -
#
text -
?string -
#
position -
?int -
#
data -
?array -
#
created -
?DateTime -
#
modified -
?DateTime -
#
published -
?DateTime -
#
published -
bool
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 35
Take no arguments.
-
#
isFirstIf() -
bool - Check whether the condition is an IF condition, i.e. is at position 1 in the condition block
-
#
isElseIf() -
bool - Check whether the condition is an ELSE IF condition, i.e. is at position >= 2 in the condition block
-
#
getDisplayType() -
string -
#
getChildren() -
Collection<BaseAction> -
#
getType() -
string - Get the type of the action, which is the object name without namespace for the action
-
#
getId() -
?int -
#
getText() -
?string -
#
getPosition() -
?int -
#
getData() -
?array -
#
getCreated() -
?DateTime -
#
getModified() -
?DateTime -
#
getPublished() -
?DateTime -
#
isPublished() -
bool -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
-
#
getAvailableTemplateVariables()Admin only -
array - Get the available template variables for this condition
No members match the filter.