Model · Rewrites module
Rewrite
A model in the Rewrites module, with 15 members for templates, 18 API properties and 21 members for admin templates.
Rewrites\Models\Frontend\RewriteCopy
Rewrites\Models\Api\RewriteCopy
Rewrites\Models\Backend\RewriteCopy
Templates view
Properties 15
Take no arguments.
#
getCreated ()
? DateTime
Get the date the record was created.
#
getModified ()
? DateTime
Get the last modification date for the record.
#
getPublished ()
? DateTime
#
isPublished ()
bool
Check if the record is published.
#
isNewRecord ()
Not in API & Jobs
bool
Check if the record is a new record
#
isHierarchicalModel ()
Not in API & Jobs
bool
Check whether a model is a hierarchical model, i.e. can have children
#
isVersionedModel ()
Not in API & Jobs
bool
Check whether a model is versioned
No members match the filter.
API & Jobs view
API & Jobs Each 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 18
Read-only values on the record.
#
hateoasLinks
Not in Templates
array
Get the HATEOAS links for the record
#
editUrl
Not in Templates
? string
Get the url for editing the record.
#
moveUrl
Not in Templates
? string
Get the url for moving the record.
#
deleteUrl
Not in Templates
? string
Get the url for deleting the record.
#
publishUrl
Not in Templates
? string
Get the url for publishing the record.
#
manageUrl
Not in Templates
? string
Get the url for managing records.
#
created
? DateTime
Get the date the record was created.
#
modified
? DateTime
Get the last modification date for the record.
#
published
bool
Check if the record is published.
No members match the filter.
Admin view
Admin Available in cdna-admin templates. Copy an admin template into your site repository to change how this record is edited.
Properties 21
Take no arguments.
#
getHateoasLinks ()
Not in Templates
array
Get the HATEOAS links for the record
#
getEditUrl ()
Not in Templates
? string
Get the url for editing the record.
#
getMoveUrl ()
Not in Templates
? string
Get the url for moving the record.
#
getDeleteUrl ()
Not in Templates
? string
Get the url for deleting the record.
#
getPublishUrl ()
Not in Templates
? string
Get the url for publishing the record.
#
getManageUrl ()
Not in Templates
? string
Get the url for managing records.
#
getCreated ()
? DateTime
Get the date the record was created.
#
getModified ()
? DateTime
Get the last modification date for the record.
#
getPublished ()
? DateTime
#
isPublished ()
bool
Check if the record is published.
#
isNewRecord ()
Not in API & Jobs
bool
Check if the record is a new record
#
isHierarchicalModel ()
Not in API & Jobs
bool
Check whether a model is a hierarchical model, i.e. can have children
#
isVersionedModel ()
Not in API & Jobs
bool
Check whether a model is versioned
No members match the filter.