ModelCommon module

LayoutArea

A model in the Common module, with 26 members for templates, 23 API properties and 30 members for admin templates.

View
What Smarty and Twig templates receive. Properties in REST API responses and job payloads. What admin screen templates receive when you override them.

Templates view

Properties 26

Take no arguments.

# getAttributes()
Collection
Gets attributes list assigned to current layout area
# getId()
?int
# getName()
?string
# getLabel()
?string
# getHelp()
?string
# getInfo()
?string
# isRequired()
bool
# getMin()
?int
# getMax()
?int
# getDefaultContent()
?Content
# getCreated()
?DateTime
Get the date the record was created.
# getModified()
?DateTime
Get the last modification date for the record.
# isHidden()
bool
# getHidden()
?DateTime
# getType()
?InputType
# getLayout()
?Layout
# getPosition()
?int
# getSupportedLayouts()
?Collection<Layout>
# isAttribute()
bool
# getParent()
?LayoutArea
# getChildren()
Collection<LayoutArea>
# getGroup()
?LayoutAreaGroup
# getSearchMasterIndexField()
?MasterIndexField
# 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

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.

# attributes
Collection
Gets attributes list assigned to current layout area
# id
?int
# name
?string
# label
?string
# help
?string
# info
?string
# required
bool
# min
?int
# max
?int
# defaultContent
?Content
# created
?DateTime
Get the date the record was created.
# modified
?DateTime
Get the last modification date for the record.
# hidden
bool
# hidden
?DateTime
# type
?InputType
# layout
?Layout
# position
?int
# supportedLayouts
?Collection<Layout>
# attribute
bool
# parent
?LayoutArea
# children
Collection<LayoutArea>
# searchMasterIndexField
?MasterIndexField

Admin view

AdminAvailable in cdna-admin templates. Copy an admin template into your site repository to change how this record is edited.

Properties 30

Take no arguments.

# getAttributes()
Collection
Gets attributes list assigned to current layout area
# getId()
?int
# getName()
?string
# getLabel()
?string
# getHelp()
?string
# getInfo()
?string
# isRequired()
bool
# getMin()
?int
# getMax()
?int
# getDefaultContent()
?Content
# getCreated()
?DateTime
Get the date the record was created.
# getModified()
?DateTime
Get the last modification date for the record.
# isHidden()
bool
# getHidden()
?DateTime
# getType()
?InputType
# getLayout()
?Layout
# getPosition()
?int
# getSupportedLayouts()
?Collection<Layout>
# isAttribute()
bool
# getParent()
?LayoutArea
# getChildren()
Collection<LayoutArea>
# getGroup()
?LayoutAreaGroup
# getSearchMasterIndexField()
?MasterIndexField
# 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
# getGlobalComponents() Admin only
Collection
Retrieves the global components that can be used or copied
# getComponentLayouts() Admin only
Collection
Retrieves component layouts
# hasAttributes() Admin only
bool
Checks whether the layout area has attributes (visible, not hidden)
# getAvailableParents() Admin only
Collection
Retrieves the available parents for a layout area to be defined as attachment