lucee.Componentcontentbox.models.BaseEntityMethods
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- This is an abstract class that represents base entity methods. We created this due to the stupid bug in ACF 9-2016, where the mapped super class is not respected in table inheritance
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
cachebox
|
true
|
false
|
|
any
|
coldbox
|
true
|
false
|
|
any
|
interceptorService
|
true
|
false
|
|
any
|
wirebox
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
any
|
appendToMemento(any collection, [any target='defaultIncludes'])
Append an incoming array of properties to a memento list target. |
any
|
appendToMementoProfile(any collection, any profile, [any target='defaultIncludes'])
Append an incoming array of properties to a memento list target for a specific profile. |
private array
|
arrayWrap(any items)
convert one or a list of permissions to an array, if it's an array we don't touch it. |
string
|
getDisplayCreatedDate([any dateFormat='[runtime expression]'], [any timeFormat='[runtime expression]'])
Get the created date in the default or specific date/time format. |
string
|
getDisplayModifiedDate([any dateFormat='[runtime expression]'], [any timeFormat='[runtime expression]'])
Get the modified date in the default or specific date/time format. |
any
|
getEntityName()
Get the entity name. |
any
|
getId()
Shortcut to get the id of the object using the this. |
any
|
includeMixin(any helper)
Pass in a helper path and load it into this object as a mixin. |
boolean
|
isLoaded()
Verify if entity is loaded or not. |
void
|
preInsert()
pre insertion procedures. |
void
|
preUpdate([struct oldData])
pre update procedures. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyinject
- provider:cacheboxpersistent
- falseserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- provider:coldboxpersistent
- falseserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- provider:coldbox:interceptorServicepersistent
- falseserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- wireboxpersistent
- falseserializable
- trueMethod Detail |
---|
Append an incoming array of properties to a memento list target
collection
- The array to appendtarget
- The target to append to: defaultIncludes, defaultExcludes, neverInclude, defaults, etc.Append an incoming array of properties to a memento list target for a specific profile
collection
- The array to appendprofile
- The profile to append to: export, import, etc.target
- The target to append to: defaultIncludes, defaultExcludes, neverInclude, defaults, etc.convert one or a list of permissions to an array, if it's an array we don't touch it
items
- One, a list or an arrayGet the created date in the default or specific date/time format
dateFormat
- The date format to use, defaulted by ContentBox to mmm dd, yyyytimeFormat
- The time format to use, defaulted by ContentBox to HH:mm:ss zGet the modified date in the default or specific date/time format
dateFormat
- The date format to use, defaulted by ContentBox to mmm dd, yyyytimeFormat
- The time format to use, defaulted by ContentBox to HH:mm:ss zGet the entity name
Shortcut to get the id of the object using the this.pk
Pass in a helper path and load it into this object as a mixin
helper
- The path to the helper to load.Verify if entity is loaded or not
pre insertion procedures
pre update procedures
oldData