ModelHooks module
WebBatchEvent
Batch event containing information about the web event that issued the hook
A model in the Hooks module, with 20 members for templates, 15 API properties and 20 members for admin templates.
Templates view
Properties 18
Take no arguments.
-
#
getType() -
string - Get the type of the event causing the hook execution. Always returns 'web' for web events.
-
#
getDataDisplay() -
string - Get a string representation the source hook and action for this batch event
-
#
getPathParameters() -
array - Get the path parameters (e.g. everything after the slug, seperated by slash) from the called event
-
#
getBodyData() -
ReadOnlyCollection - Get the body data for this web event call with content-type was application/json. Returns the data in array form if it was submitted as JSON or Form encoded.
-
#
getId() -
?int -
#
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.
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.
-
#
type -
string - Get the type of the event causing the hook execution. Always returns 'web' for web events.
-
#
pathParameters -
array - Get the path parameters (e.g. everything after the slug, seperated by slash) from the called event
-
#
bodyData -
ReadOnlyCollection - Get the body data for this web event call with content-type was application/json. Returns the data in array form if it was submitted as JSON or Form encoded.
-
#
id -
?int
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 18
Take no arguments.
-
#
getType() -
string - Get the type of the event causing the hook execution. Always returns 'web' for web events.
-
#
getDataDisplay() -
string - Get a string representation the source hook and action for this batch event
-
#
getPathParameters() -
array - Get the path parameters (e.g. everything after the slug, seperated by slash) from the called event
-
#
getBodyData() -
ReadOnlyCollection - Get the body data for this web event call with content-type was application/json. Returns the data in array form if it was submitted as JSON or Form encoded.
-
#
getId() -
?int -
#
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.
No members match the filter.