lucee.Componentcontentbox.models.BaseEntityMethods
contentbox.models.content.ContentTemplate
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- A content template for a base content item
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
assignedContentItems
|
0
|
true
|
false
|
any
|
contentTemplateService
|
true
|
false
|
|
any
|
contentType
|
true
|
false
|
|
date
|
createdDate
--------------------------------------------------------------------------.
|
true
|
false
|
|
any
|
creator
|
true
|
false
|
|
any
|
definition
|
{}
|
true
|
false
|
any
|
description
|
true
|
false
|
|
any
|
isDeleted
|
false
|
true
|
false
|
any
|
isGlobal
|
false
|
true
|
false
|
date
|
modifiedDate
|
true
|
false
|
|
any
|
name
|
true
|
false
|
|
any
|
schema
|
true
|
false
|
|
any
|
site
|
true
|
false
|
|
any
|
templateID
--------------------------------------------------------------------------.
|
true
|
false
|
Constructor Summary | |
---|---|
init()
|
Method Summary | |
---|---|
string
|
getAssignedContentItems()
|
string
|
getContentTemplateService()
|
string
|
getContentType()
|
string
|
getCreatedDate()
|
string
|
getCreator()
|
any
|
getDefinition()
Overload getter for definition to deal with JSON conversion. |
string
|
getDescription()
|
string
|
getIsDeleted()
|
string
|
getIsGlobal()
|
string
|
getModifiedDate()
|
string
|
getName()
|
string
|
getSchema()
|
string
|
getSite()
|
string
|
getTemplateID()
|
boolean
|
hasCreator([any creator])
|
boolean
|
hasSite([any site])
|
boolean
|
isGlobalUniqueInSite()
UDF validation method to test for global uniqueness of a Content Template. |
boolean
|
isNameUniqueInSite([any value='[runtime expression]'])
Determines whether a template with a given name is unique within a site. |
any
|
setAssignedContentItems(any assignedContentItems)
|
any
|
setContentTemplateService(any contentTemplateService)
|
any
|
setContentType(any contentType)
|
any
|
setCreatedDate(date createdDate)
|
any
|
setCreator(any creator)
|
any
|
setDefinition([any definition])
Overload setter for definition to deal with JSON conversion. |
any
|
setDescription(any description)
|
any
|
setIsDeleted(any isDeleted)
|
any
|
setIsGlobal(any isGlobal)
|
any
|
setModifiedDate(date modifiedDate)
|
any
|
setName(any name)
|
any
|
setSchema(any schema)
|
any
|
setSite(any site)
|
any
|
setTemplateID(any templateID)
|
Methods inherited from class contentbox.models.BaseEntityMethods |
---|
appendToMemento, appendToMementoProfile, arrayWrap, getDisplayCreatedDate, getDisplayModifiedDate, getEntityName, getId, includeMixin, isLoaded, preInsert, preUpdate |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyformula
- select count(*) from cb_content cbc2 WHERE cbc2.FK_contentTemplateID=templateID or cbc2.FK_childContentTemplateID=templateIDormtype
- integerserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- provider:ContentTemplateService@contentboxpersistent
- falseserializable
- trueaccess
- publicrequired
- falsereturntype
- anycolumn
- contentTypeindex
- idx_templateContentTypelength
- 50serializable
- true-------------------------------------------------------------------------- STUPID PROPERTIES DUE TO ACF BUG -------------------------------------------------------------------------- There is a bug in acf2016, 2018, 2021 dealing with table inheritance. It has never been fixed. Until it does, keep these.
access
- publicrequired
- falsereturntype
- anycolumn
- createdDatenotnull
- trueormtype
- timestampupdate
- falseserializable
- trueaccess
- publicrequired
- falseinsert
- truefieldtype
- many-to-onereturntype
- anynotnull
- trueupdate
- falsefkcolumn
- FK_authorIDserializable
- truecfc
- contentbox.models.security.Authoraccess
- publicrequired
- falsereturntype
- anycolumn
- definitionnotnull
- trueormtype
- textserializable
- trueaccess
- publicrequired
- falsereturntype
- anycolumn
- descriptionnotnull
- falselength
- 1000serializable
- trueaccess
- publicrequired
- falsereturntype
- anycolumn
- isDeletednotnull
- trueormtype
- booleanserializable
- trueaccess
- publicrequired
- falsereturntype
- anycolumn
- isGlobalnotnull
- trueormtype
- booleanserializable
- trueaccess
- publicrequired
- falsereturntype
- anycolumn
- modifiedDatenotnull
- trueormtype
- timestampserializable
- trueaccess
- publicrequired
- falsereturntype
- anycolumn
- namenotnull
- truelength
- 225serializable
- trueaccess
- publicrequired
- falsereturntype
- anypersistent
- falseserializable
- trueaccess
- publicrequired
- falseinsert
- truefieldtype
- many-to-onereturntype
- anyfetch
- joinnotnull
- trueupdate
- falsefkcolumn
- FK_siteIDserializable
- truecfc
- contentbox.models.system.Sitelazy
- true-------------------------------------------------------------------------- PROPERTIES --------------------------------------------------------------------------
access
- publicrequired
- falsefieldtype
- idreturntype
- anycolumn
- templateIDormtype
- stringupdate
- falsegenerator
- uuidlength
- 36serializable
- trueMethod Detail |
---|
Overload getter for definition to deal with JSON conversion
creator
site
UDF validation method to test for global uniqueness of a Content Template
Determines whether a template with a given name is unique within a site
value
- The name to test for uniquenessassignedContentItems
contentTemplateService
contentType
createdDate
creator
Overload setter for definition to deal with JSON conversion
definition
description
isDeleted
isGlobal
modifiedDate
name
schema
site
templateID