contentbox.models.content

Class BaseContent

lucee.Component
    extended by contentbox.models.BaseEntityMethods
      extended by contentbox.models.content.BaseContent
Direct Known Subclasses:
ContentStore , Entry , Page

ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- A mapped super class used for any ContentBox content object. All concrete content objects will inherit from this one.

Class Attributes:
  • entityname : cbContent
  •  
  • cacheuse : read-write
  •  
  • table : cb_content
  •  
  • synchronized : false
  •  
  • cachename : cbContent
  •  
  • discriminatorcolumn : contentType
  •  
  • accessors : false
  •  
  • persistent : true
  •  
    Property Summary
    type property default serializable required
    any HTMLDescription


    • access = public
    • returntype = any
    • column = HTMLDescription
    • notnull = false
    • length = 160
    true false
    any HTMLKeywords


    • access = public
    • returntype = any
    • column = HTMLKeywords
    • notnull = false
    • length = 160
    true false
    any HTMLTitle


    • access = public
    • returntype = any
    • column = HTMLTitle
    • notnull = false
    • length = 255
    true false
    any JSONPrettyPrint


    • access = public
    • returntype = any
    • inject = provider:JSONPrettyPrint@JSONPrettyPrint
    • persistent = false
    true false
    any allowComments


    • access = public
    • returntype = any
    • column = allowComments
    • notnull = true
    • ormtype = boolean
    true true false
    any cache


    • access = public
    • returntype = any
    • column = cache
    • notnull = true
    • ormtype = boolean
    • index = idx_cache
    true true false
    any cacheLastAccessTimeout


    • access = public
    • returntype = any
    • column = cacheLastAccessTimeout
    • notnull = false
    • ormtype = integer
    • index = idx_cachelastaccesstimeout
    0 true false
    any cacheTimeout


    • access = public
    • returntype = any
    • column = cacheTimeout
    • notnull = false
    • ormtype = integer
    • index = idx_cachetimeout
    0 true false
    array categories


    • linktable = cb_contentCategories
    • access = public
    • fieldtype = many-to-many
    • returntype = any
    • cascade = save-update
    • orderby = category
    • fkcolumn = FK_contentID
    • inversejoincolumn = FK_categoryID
    • cfc = contentbox.models.content.Category
    • lazy = true
    true false
    any categoryService
          --------------------------------------------------------------------------.

    • access = public
    • returntype = any
    • inject = provider:categoryService@contentbox
    • persistent = false
    true false
    any childContentTemplate


    • access = public
    • fieldtype = many-to-one
    • returntype = any
    • fkcolumn = FK_childContentTemplateID
    • cfc = contentbox.models.content.ContentTemplate
    • lazy = true
    true false
    array children


    • access = public
    • inverse = true
    • fieldtype = one-to-many
    • returntype = any
    • cascade = all-delete-orphan
    • orderby = createdDate
    • batchsize = 25
    • singularname = child
    • fkcolumn = FK_parentID
    • cfc = contentbox.models.content.BaseContent
    • lazy = extra
    true false
    array commentSubscriptions


    • access = public
    • inverse = true
    • fieldtype = one-to-many
    • returntype = any
    • cascade = all-delete-orphan
    • batchsize = 25
    • singularname = commentSubscription
    • fkcolumn = FK_contentID
    • cfc = contentbox.models.subscriptions.CommentSubscription
    • lazy = true
    true false
    array comments


    • access = public
    • inverse = true
    • fieldtype = one-to-many
    • returntype = any
    • cascade = all-delete-orphan
    • orderby = createdDate
    • batchsize = 25
    • singularname = comment
    • fkcolumn = FK_contentID
    • cfc = contentbox.models.comments.Comment
    • lazy = true
    true false
    any contentID
          --------------------------------------------------------------------------.

    • access = public
    • fieldtype = id
    • returntype = any
    • column = contentID
    • ormtype = string
    • update = false
    • generator = uuid
    • length = 36
    true false
    any contentService


    • access = public
    • returntype = any
    • inject = provider:contentService@contentbox
    • persistent = false
    true false
    any contentTemplate


    • access = public
    • fieldtype = many-to-one
    • returntype = any
    • fkcolumn = FK_contentTemplateID
    • cfc = contentbox.models.content.ContentTemplate
    • lazy = true
    true false
    any contentTemplateService


    • access = public
    • returntype = any
    • inject = provider:ContentTemplateService@contentbox
    • persistent = false
    true false
    any contentType


    • access = public
    • insert = false
    • returntype = any
    • column = contentType
    • update = false
    • index = idx_discriminator,idx_published
    • setter = no
    true false
    any contentVersionService


    • access = public
    • returntype = any
    • inject = provider:contentVersionService@contentbox
    • persistent = false
    true false
    array contentVersions


    • access = public
    • inverse = true
    • fieldtype = one-to-many
    • returntype = any
    • cascade = all-delete-orphan
    • orderby = version desc
    • batchsize = 25
    • singularname = contentVersion
    • fkcolumn = FK_contentID
    • cfc = contentbox.models.content.ContentVersion
    • lazy = true
    true false
    date createdDate
          --------------------------------------------------------------------------.

    • access = public
    • returntype = any
    • column = createdDate
    • notnull = true
    • ormtype = timestamp
    • update = false
    true false
    any creator
          --------------------------------------------------------------------------.

    • access = public
    • fieldtype = many-to-one
    • returntype = any
    • notnull = true
    • fkcolumn = FK_authorID
    • cfc = contentbox.models.security.Author
    • lazy = true
    true false
    any customFieldService


    • access = public
    • returntype = any
    • inject = provider:customFieldService@contentbox
    • persistent = false
    true false
    array customFields


    • access = public
    • inverse = true
    • fieldtype = one-to-many
    • returntype = any
    • cascade = all-delete-orphan
    • batchsize = 25
    • singularname = customField
    • fkcolumn = FK_contentID
    • cfc = contentbox.models.content.CustomField
    • lazy = extra
    true false
    any expireDate


    • access = public
    • returntype = any
    • column = expireDate
    • notnull = false
    • ormtype = timestamp
    • index = idx_expireDate
    true false
    any featuredImage


    • access = public
    • returntype = any
    • column = featuredImage
    • notnull = false
    • length = 500
    true false
    any i18n


    • access = public
    • returntype = any
    • inject = provider:i18n@cbi18n
    • persistent = false
    true false
    any isDeleted


    • access = public
    • returntype = any
    • column = isDeleted
    • notnull = true
    • ormtype = boolean
    false true false
    any isPublished


    • access = public
    • returntype = any
    • column = isPublished
    • notnull = true
    • ormtype = boolean
    • index = idx_published,idx_search,idx_publishedSlug
    true true false
    array linkedContent


    • linktable = cb_relatedContent
    • access = public
    • inverse = true
    • fieldtype = many-to-many
    • returntype = any
    • cascade = save-update
    • orderby = title
    • fkcolumn = FK_relatedContentID
    • inversejoincolumn = FK_contentID
    • cfc = contentbox.models.content.BaseContent
    • lazy = true
    true false
    any markup


    • access = public
    • returntype = any
    • column = markup
    • notnull = true
    • length = 100
    HTML true false
    any mediaService


    • access = public
    • returntype = any
    • inject = provider:MediaService@contentbox
    • persistent = false
    true false
    date modifiedDate


    • access = public
    • returntype = any
    • column = modifiedDate
    • notnull = true
    • ormtype = timestamp
    true false
    any numberOfChildren


    • access = public
    • returntype = any
    • formula = select count(*) from cb_content content where content.FK_parentID=contentID
    0 true false
    any numberOfComments


    • access = public
    • returntype = any
    • formula = select count(*) from cb_comment comment where comment.FK_contentID=contentID
    0 true false
    any numberOfHits
          --------------------------------------------------------------------------.

    • access = public
    • returntype = any
    • formula = select cbStats.hits from cb_stats cbStats where cbStats.FK_contentID=contentID
    0 true false
    any numberOfVersions


    • access = public
    • returntype = any
    • formula = select count(*) from cb_contentVersion versions where versions.FK_contentID=contentID
    0 true false
    any parent


    • access = public
    • fieldtype = many-to-one
    • returntype = any
    • fkcolumn = FK_parentID
    • cfc = contentbox.models.content.BaseContent
    • lazy = true
    true false
    any passwordProtection


    • access = public
    • returntype = any
    • column = passwordProtection
    • notnull = false
    • length = 100
    true false
    any publishedDate


    • access = public
    • returntype = any
    • column = publishedDate
    • notnull = false
    • ormtype = timestamp
    • index = idx_publishedDate
    true false
    array relatedContent


    • linktable = cb_relatedContent
    • access = public
    • fieldtype = many-to-many
    • returntype = any
    • cascade = save-update
    • orderby = title
    • fkcolumn = FK_contentID
    • inversejoincolumn = FK_relatedContentID
    • cfc = contentbox.models.content.BaseContent
    • lazy = true
    true false
    any renderedContent
          --------------------------------------------------------------------------.

    • access = public
    • returntype = any
    • persistent = false
    true false
    any settingService


    • access = public
    • returntype = any
    • inject = provider:settingService@contentbox
    • persistent = false
    true false
    any showInSearch


    • access = public
    • returntype = any
    • column = showInSearch
    • notnull = true
    • ormtype = boolean
    • index = idx_showInSearch
    true true false
    any site


    • access = public
    • fieldtype = many-to-one
    • returntype = any
    • fetch = join
    • notnull = true
    • fkcolumn = FK_siteID
    • cfc = contentbox.models.system.Site
    • lazy = true
    true false
    any slug


    • access = public
    • returntype = any
    • column = slug
    • notnull = true
    • index = idx_slug,idx_publishedSlug
    • length = 500
    true false
    any stats


    • access = public
    • fieldtype = one-to-one
    • returntype = any
    • cascade = all-delete-orphan
    • fetch = join
    • notnull = true
    • cfc = contentbox.models.content.Stats
    • mappedby = relatedContent
    • lazy = true
    true false
    any title


    • access = public
    • returntype = any
    • column = title
    • notnull = true
    • index = idx_search
    • length = 500
    true false
    Constructor Summary
    init()
          Base constructor.
    Method Summary
    BaseContent addCategories(any category)
         Only adds it if not found in content object.
    any addChild(any child)
    any addComment(any comment)
    any addCommentSubscription(any commentSubscription)
    any addContentVersion(any contentVersion)
    any addCustomField(any customField)
    any addExpiredTime(any hour, any minute)
         add expired timestamp to property.
    any addJoinedExpiredTime(string timeString)
         add expired timestamp to property.
    any addJoinedPublishedTime(string timeString)
         add published timestamp to property.
    any addLinkedContent(any linkedContent)
    BaseContent addNewContentVersion(any content, [any changelog=''], any author, [boolean isPreview='false'])
         Add a new content version to the content object.
    any addPublishedTime(any hour, any minute)
         add published timestamp to property.
    any addRelatedContent(any relatedContent)
    BaseContent applyContentTemplate()
         Apply any assigned content templates to this instance.
    string buildContentCacheCleanupKey()
         This builds a partial cache key so we can clean from the cache many permutations of the content object.
    string buildContentCacheKey()
         Build content cache keys according to sent content object.
    boolean canCacheContent()
         Verify we can do content caching on this content object using global and local rules.
    BaseContent clone(any author, any original, any originalService, boolean publish, any originalSlugRoot, any newSlugRoot)
         Clones the object and stores it in the database.
    boolean commentsAllowed()
         Determines if the content object can have comments or not.
    ContentVersion getActiveContent()
         Get the latest active version object, empty new one if none assigned.
    string getAllowComments()
    any getAuthor()
         Shorthand Author from latest version or null if any yet.
    string getAuthorEmail()
         Shorthand Author email from latest version.
    string getAuthorName()
         Shorthand Author name from latest version.
    string getCache()
    string getCacheLastAccessTimeout()
    string getCacheTimeout()
    string getCategories()
    array getCategoriesArray()
         Get an array of category slugs for this content object.
    string getCategoriesList()
         Get a list string of the categories this content object has.
    string getCategoryService()
    string getChildContentTemplate()
    string getChildren()
    array getChildrenSnapshot()
         Build the array of children snapshots.
    string getCommentSubscriptions()
    string getComments()
    string getContent()
         Retrieves the latest content string from the latest version un-translated.
    string getContentID()
    string getContentService()
    any getContentTemplate()
         Getter overload to return either the assigned template or the global template for the site.
    string getContentTemplateService()
    string getContentType()
    string getContentVersionService()
    string getContentVersions()
    string getCreatedDate()
    string getCreator()
    string getCreatorEmail()
         Shorthand Creator email.
    string getCreatorName()
         Shorthand Creator name.
    struct getCreatorSnapshot()
         Build a creator snapshot.
    any getCustomField(any key, [any defaultValue])
         Shortcut to get a custom field value.
    string getCustomFieldService()
    string getCustomFields()
    struct getCustomFieldsAsStruct()
         Get custom fields as a structure representation.
    string getDisplayExpireDate([any dateFormat='[runtime expression]'], [any timeFormat='[runtime expression]'], [boolean showTime='true'])
         Get the expire date using the default date format and time format.
    string getDisplayPublishedDate([any dateFormat='[runtime expression]'], [any timeFormat='[runtime expression]'], [boolean showTime='true'])
         Get the published date using the default date format and time format.
    string getExpireDate()
    string getExpireDateTime()
         This method retrieves the time of the expiration for the content object in UTC timezone.
    string getFeaturedImage()
    any getFeaturedImageURL()
         Returns the URL of the featured image.
    string getHTMLDescription()
    string getHTMLKeywords()
    string getHTMLTitle()
    string getI18n()
    struct getInfoSnapshot()
         Utility method to get a snapshot of this content object.
    string getIsDeleted()
    string getIsPublished()
    string getJSONPrettyPrint()
    struct getLastEditorSnapshot()
         Build a last editor snapshot.
    string getLinkedContent()
    array getLinkedContentSnapshot()
         Build the array of linked content snapshots.
    string getMarkup()
    string getMediaService()
    string getModifiedDate()
    numeric getNumberOfActiveVersions()
         Get the total number of active versions this content object has.
    numeric getNumberOfApprovedComments()
         Get the total number of approved comments this content object has.
    numeric getNumberOfChildren()
         Get the number of children.
    numeric getNumberOfComments()
         Get the total number of comments this content object has.
    numeric getNumberOfHits()
         Get the number of hits.
    numeric getNumberOfVersions()
         Get the total number of versions this content object has.
    string getParent()
    any getParentID()
         Get parent ID if set or empty if none.
    any getParentName()
         Get parent name or empty if none.
    struct getParentSnapshot()
         Build a parent snapshot.
    string getPasswordProtection()
    string getPublishedDate()
    string getPublishedDateTime()
         This method retrieves the time of the publishing for the content object in UTC timezone.
    string getRelatedContent()
    string getRelatedContentIDs()
         Returns a list of active related content for this piece of content.
    array getRelatedContentSnapshot()
         Build the array of related content snapshots.
    any getRenderedContent()
         Shortcut to get the rendered content.
    any getRenderedExcerpt()
         Shortcut to get the rendered excerpt.
    string getSettingService()
    string getShowInSearch()
    string getSite()
    any getSiteID()
         Shortcut to get the site id.
    any getSiteName()
         Shortcut to get the site name.
    any getSiteSlug()
         Shortcut to get the site slug.
    struct getSiteSnapshot()
         Build a site snapshot.
    string getSlug()
    string getStats()
    string getTitle()
    boolean hasActiveContent()
         Verify if this content object has an active version with content.
    boolean hasCategories([any categories])
    boolean hasChild([any child])
    boolean hasChildContentTemplate([any childContentTemplate])
    boolean hasComment([any comment])
    boolean hasCommentSubscription([any commentSubscription])
    boolean hasContentTemplate([any contentTemplate])
    boolean hasContentVersion([any contentVersion])
    boolean hasCreator([any creator])
    boolean hasCustomField([any customField])
    boolean hasLinkedContent([any linkedContent])
    boolean hasParent([any parent])
    boolean hasRelatedContent([any relatedContent])
    boolean hasSite([any site])
    boolean hasStats([any stats])
    any inflateCustomFields(numeric fieldCount, struct memento)
         Inflate custom fields from the incoming count and memento structure.
    BaseContent inflateRelatedContent(any relatedContent)
         Inflates from comma-delimited list (or array) of id's.
    boolean isContentPublished()
         Bit that denotes if the content has been published or not.
    boolean isContentStore()
         Determines if the content object is a content store type.
    boolean isExpired()
         Bit that denotes if the content has expired or not, in order to be expired the content must have been published as well.
    boolean isLoaded()
         Is entity loaded.
    boolean isPasswordProtected()
         isPassword Protected.
    boolean isPublishedInFuture()
         Bit that denotes if the content has been published or not in the future.
    boolean isSameSite(any site)
         Verifies that the incoming site is the same as the content has already.
    private any maxContentVersionChecks()
         Verify and rotate maximum content versions.
    any onDIComplete()
         Prepare the instance for usage.
    BaseContent removeAllCategories()
    BaseContent removeAllCustomFields()
    BaseContent removeAllLinkedContent()
    BaseContent removeCategories(any category)
         Remove only if it's found in the content object.
    boolean removeChild(any child)
    boolean removeComment(any comment)
    boolean removeCommentSubscription(any commentSubscription)
    boolean removeContentVersion(any contentVersion)
    boolean removeCustomField(any customField)
    boolean removeLinkedContent(any linkedContent)
    boolean removeRelatedContent(any relatedContent)
    any renderContent()
         Render content out using translations, caching, etc.
    any renderContentSilent([any content='[runtime expression]'])
         Renders the content silently so no caching, or extra fluff is done, just content translation rendering.
    BaseContent setActiveContent(any content)
         Set the active content version manually, usually great for previews.
    any setAllowComments(any allowComments)
    any setCache(any cache)
    any setCacheLastAccessTimeout(any cacheLastAccessTimeout)
    any setCacheTimeout(any cacheTimeout)
    any setCategories(array categories)
    any setCategoryService(any categoryService)
    any setChildContentTemplate(any childContentTemplate)
    BaseContent setChildren(array children)
         Override the setChildren.
    any setCommentSubscriptions(array commentSubscriptions)
    BaseContent setComments(array comments)
         Override the setComments.
    any setContentID(any contentID)
    any setContentService(any contentService)
    any setContentTemplate(any contentTemplate)
    any setContentTemplateService(any contentTemplateService)
    any setContentVersionService(any contentVersionService)
    BaseContent setContentVersions(array contentVersions)
         Override the setContentVersions.
    any setCreatedDate(date createdDate)
    any setCreator(any creator)
    any setCustomFieldService(any customFieldService)
    BaseContent setCustomFields(array customFields)
         Override the setter.
    any setExpireDate(any expireDate)
    any setFeaturedImage(any featuredImage)
    any setHTMLDescription(any HTMLDescription)
    any setHTMLKeywords(any HTMLKeywords)
    any setHTMLTitle(any HTMLTitle)
    any setI18n(any i18n)
    any setIsDeleted(any isDeleted)
    any setIsPublished(any isPublished)
    any setJSONPrettyPrint(any JSONPrettyPrint)
    any setLinkedContent(array linkedContent)
    any setMarkup(any markup)
    any setMediaService(any mediaService)
    any setModifiedDate(date modifiedDate)
    any setNumberOfChildren(any numberOfChildren)
    any setNumberOfComments(any numberOfComments)
    any setNumberOfHits(any numberOfHits)
    any setNumberOfVersions(any numberOfVersions)
    BaseContent setParent([any parent])
         Override setter as we do some hiearchy slug magic when setting a parent.
    any setPasswordProtection(any passwordProtection)
    any setPublishedDate(any publishedDate)
    BaseContent setRelatedContent(array relatedContent)
         Override the setRelatedContent.
    any setRenderedContent(any renderedContent)
    any setSettingService(any settingService)
    any setShowInSearch(any showInSearch)
    any setSite(any site)
    any setSlug(any slug)
    any setStats(any stats)
    any setTitle(any title)
     
    Methods inherited from class contentbox.models.BaseEntityMethods
    appendToMemento, appendToMementoProfile, arrayWrap, getDisplayCreatedDate, getDisplayModifiedDate, getEntityName, getId, includeMixin, preInsert, preUpdate
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()

    Base constructor


    Property Detail

    HTMLDescription

    property any HTMLDescription

    Attributes:
    access - public
    required - false
    returntype - any
    column - HTMLDescription
    notnull - false
    length - 160
    serializable - true

    HTMLKeywords

    property any HTMLKeywords

    Attributes:
    access - public
    required - false
    returntype - any
    column - HTMLKeywords
    notnull - false
    length - 160
    serializable - true

    HTMLTitle

    property any HTMLTitle

    Attributes:
    access - public
    required - false
    returntype - any
    column - HTMLTitle
    notnull - false
    length - 255
    serializable - true

    JSONPrettyPrint

    property any JSONPrettyPrint

    Attributes:
    access - public
    required - false
    returntype - any
    inject - provider:JSONPrettyPrint@JSONPrettyPrint
    persistent - false
    serializable - true

    allowComments

    property any allowComments = [true]

    Attributes:
    access - public
    required - false
    returntype - any
    column - allowComments
    notnull - true
    ormtype - boolean
    serializable - true

    cache

    property any cache = [true]

    Attributes:
    access - public
    required - false
    returntype - any
    column - cache
    notnull - true
    ormtype - boolean
    index - idx_cache
    serializable - true

    cacheLastAccessTimeout

    property any cacheLastAccessTimeout = [0]

    Attributes:
    access - public
    required - false
    returntype - any
    column - cacheLastAccessTimeout
    notnull - false
    ormtype - integer
    index - idx_cachelastaccesstimeout
    serializable - true

    cacheTimeout

    property any cacheTimeout = [0]

    Attributes:
    access - public
    required - false
    returntype - any
    column - cacheTimeout
    notnull - false
    ormtype - integer
    index - idx_cachetimeout
    serializable - true

    categories

    property array categories

    Attributes:
    linktable - cb_contentCategories
    access - public
    required - false
    fieldtype - many-to-many
    returntype - any
    cascade - save-update
    orderby - category
    fkcolumn - FK_contentID
    serializable - true
    inversejoincolumn - FK_categoryID
    cfc - contentbox.models.content.Category
    lazy - true

    categoryService

    property any categoryService

    -------------------------------------------------------------------------- DI -------------------------------------------------------------------------- All DI is done lazyly to avoid any performance issues. Thus the provider annotation

    Attributes:
    access - public
    required - false
    returntype - any
    inject - provider:categoryService@contentbox
    persistent - false
    serializable - true

    childContentTemplate

    property any childContentTemplate

    Attributes:
    access - public
    required - false
    fieldtype - many-to-one
    returntype - any
    fkcolumn - FK_childContentTemplateID
    serializable - true
    cfc - contentbox.models.content.ContentTemplate
    lazy - true

    children

    property array children

    Attributes:
    access - public
    required - false
    inverse - true
    fieldtype - one-to-many
    returntype - any
    cascade - all-delete-orphan
    orderby - createdDate
    batchsize - 25
    singularname - child
    fkcolumn - FK_parentID
    serializable - true
    cfc - contentbox.models.content.BaseContent
    lazy - extra

    commentSubscriptions

    property array commentSubscriptions

    Attributes:
    access - public
    required - false
    inverse - true
    fieldtype - one-to-many
    returntype - any
    cascade - all-delete-orphan
    batchsize - 25
    singularname - commentSubscription
    fkcolumn - FK_contentID
    serializable - true
    cfc - contentbox.models.subscriptions.CommentSubscription
    lazy - true

    comments

    property array comments

    Attributes:
    access - public
    required - false
    inverse - true
    fieldtype - one-to-many
    returntype - any
    cascade - all-delete-orphan
    orderby - createdDate
    batchsize - 25
    singularname - comment
    fkcolumn - FK_contentID
    serializable - true
    cfc - contentbox.models.comments.Comment
    lazy - true

    contentID

    property any contentID

    -------------------------------------------------------------------------- PROPERTIES --------------------------------------------------------------------------

    Attributes:
    access - public
    required - false
    fieldtype - id
    returntype - any
    column - contentID
    ormtype - string
    update - false
    generator - uuid
    length - 36
    serializable - true

    contentService

    property any contentService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - provider:contentService@contentbox
    persistent - false
    serializable - true

    contentTemplate

    property any contentTemplate

    Attributes:
    access - public
    required - false
    fieldtype - many-to-one
    returntype - any
    fkcolumn - FK_contentTemplateID
    serializable - true
    cfc - contentbox.models.content.ContentTemplate
    lazy - true

    contentTemplateService

    property any contentTemplateService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - provider:ContentTemplateService@contentbox
    persistent - false
    serializable - true

    contentType

    property any contentType

    Attributes:
    access - public
    required - false
    insert - false
    returntype - any
    column - contentType
    update - false
    index - idx_discriminator,idx_published
    serializable - true
    setter - no

    contentVersionService

    property any contentVersionService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - provider:contentVersionService@contentbox
    persistent - false
    serializable - true

    contentVersions

    property array contentVersions

    Attributes:
    access - public
    required - false
    inverse - true
    fieldtype - one-to-many
    returntype - any
    cascade - all-delete-orphan
    orderby - version desc
    batchsize - 25
    singularname - contentVersion
    fkcolumn - FK_contentID
    serializable - true
    cfc - contentbox.models.content.ContentVersion
    lazy - true

    createdDate

    property date createdDate

    -------------------------------------------------------------------------- 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.

    Attributes:
    access - public
    required - false
    returntype - any
    column - createdDate
    notnull - true
    ormtype - timestamp
    update - false
    serializable - true

    creator

    property any creator

    -------------------------------------------------------------------------- RELATIONSHIPS --------------------------------------------------------------------------

    Attributes:
    access - public
    required - false
    fieldtype - many-to-one
    returntype - any
    notnull - true
    fkcolumn - FK_authorID
    serializable - true
    cfc - contentbox.models.security.Author
    lazy - true

    customFieldService

    property any customFieldService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - provider:customFieldService@contentbox
    persistent - false
    serializable - true

    customFields

    property array customFields

    Attributes:
    access - public
    required - false
    inverse - true
    fieldtype - one-to-many
    returntype - any
    cascade - all-delete-orphan
    batchsize - 25
    singularname - customField
    fkcolumn - FK_contentID
    serializable - true
    cfc - contentbox.models.content.CustomField
    lazy - extra

    expireDate

    property any expireDate

    Attributes:
    access - public
    required - false
    returntype - any
    column - expireDate
    notnull - false
    ormtype - timestamp
    index - idx_expireDate
    serializable - true

    featuredImage

    property any featuredImage

    Attributes:
    access - public
    required - false
    returntype - any
    column - featuredImage
    notnull - false
    length - 500
    serializable - true

    i18n

    property any i18n

    Attributes:
    access - public
    required - false
    returntype - any
    inject - provider:i18n@cbi18n
    persistent - false
    serializable - true

    isDeleted

    property any isDeleted = [false]

    Attributes:
    access - public
    required - false
    returntype - any
    column - isDeleted
    notnull - true
    ormtype - boolean
    serializable - true

    isPublished

    property any isPublished = [true]

    Attributes:
    access - public
    required - false
    returntype - any
    column - isPublished
    notnull - true
    ormtype - boolean
    index - idx_published,idx_search,idx_publishedSlug
    serializable - true

    linkedContent

    property array linkedContent

    Attributes:
    linktable - cb_relatedContent
    access - public
    required - false
    inverse - true
    fieldtype - many-to-many
    returntype - any
    cascade - save-update
    orderby - title
    fkcolumn - FK_relatedContentID
    serializable - true
    inversejoincolumn - FK_contentID
    cfc - contentbox.models.content.BaseContent
    lazy - true

    markup

    property any markup = [HTML]

    Attributes:
    access - public
    required - false
    returntype - any
    column - markup
    notnull - true
    length - 100
    serializable - true

    mediaService

    property any mediaService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - provider:MediaService@contentbox
    persistent - false
    serializable - true

    modifiedDate

    property date modifiedDate

    Attributes:
    access - public
    required - false
    returntype - any
    column - modifiedDate
    notnull - true
    ormtype - timestamp
    serializable - true

    numberOfChildren

    property any numberOfChildren = [0]

    Attributes:
    access - public
    required - false
    returntype - any
    formula - select count(*) from cb_content content where content.FK_parentID=contentID
    serializable - true

    numberOfComments

    property any numberOfComments = [0]

    Attributes:
    access - public
    required - false
    returntype - any
    formula - select count(*) from cb_comment comment where comment.FK_contentID=contentID
    serializable - true

    numberOfHits

    property any numberOfHits = [0]

    -------------------------------------------------------------------------- CALCULATED FIELDS --------------------------------------------------------------------------

    Attributes:
    access - public
    required - false
    returntype - any
    formula - select cbStats.hits from cb_stats cbStats where cbStats.FK_contentID=contentID
    serializable - true

    numberOfVersions

    property any numberOfVersions = [0]

    Attributes:
    access - public
    required - false
    returntype - any
    formula - select count(*) from cb_contentVersion versions where versions.FK_contentID=contentID
    serializable - true

    parent

    property any parent

    Attributes:
    access - public
    required - false
    fieldtype - many-to-one
    returntype - any
    fkcolumn - FK_parentID
    serializable - true
    cfc - contentbox.models.content.BaseContent
    lazy - true

    passwordProtection

    property any passwordProtection

    Attributes:
    access - public
    required - false
    returntype - any
    column - passwordProtection
    notnull - false
    length - 100
    serializable - true

    publishedDate

    property any publishedDate

    Attributes:
    access - public
    required - false
    returntype - any
    column - publishedDate
    notnull - false
    ormtype - timestamp
    index - idx_publishedDate
    serializable - true

    relatedContent

    property array relatedContent

    Attributes:
    linktable - cb_relatedContent
    access - public
    required - false
    fieldtype - many-to-many
    returntype - any
    cascade - save-update
    orderby - title
    fkcolumn - FK_contentID
    serializable - true
    inversejoincolumn - FK_relatedContentID
    cfc - contentbox.models.content.BaseContent
    lazy - true

    renderedContent

    property any renderedContent

    -------------------------------------------------------------------------- NON PERSISTED PROPERTIES --------------------------------------------------------------------------

    Attributes:
    access - public
    required - false
    returntype - any
    persistent - false
    serializable - true

    settingService

    property any settingService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - provider:settingService@contentbox
    persistent - false
    serializable - true

    showInSearch

    property any showInSearch = [true]

    Attributes:
    access - public
    required - false
    returntype - any
    column - showInSearch
    notnull - true
    ormtype - boolean
    index - idx_showInSearch
    serializable - true

    site

    property any site

    Attributes:
    access - public
    required - false
    fieldtype - many-to-one
    returntype - any
    fetch - join
    notnull - true
    fkcolumn - FK_siteID
    serializable - true
    cfc - contentbox.models.system.Site
    lazy - true

    slug

    property any slug

    Attributes:
    access - public
    required - false
    returntype - any
    column - slug
    notnull - true
    index - idx_slug,idx_publishedSlug
    length - 500
    serializable - true

    stats

    property any stats

    Attributes:
    access - public
    required - false
    fieldtype - one-to-one
    returntype - any
    cascade - all-delete-orphan
    fetch - join
    notnull - true
    serializable - true
    cfc - contentbox.models.content.Stats
    mappedby - relatedContent
    lazy - true

    title

    property any title

    Attributes:
    access - public
    required - false
    returntype - any
    column - title
    notnull - true
    index - idx_search
    length - 500
    serializable - true

    Method Detail

    addCategories

    public BaseContent addCategories(any category)

    Only adds it if not found in content object

    Parameters:
    category

    addChild

    public any addChild(any child)

    Parameters:
    child

    addComment

    public any addComment(any comment)

    Parameters:
    comment

    addCommentSubscription

    public any addCommentSubscription(any commentSubscription)

    Parameters:
    commentSubscription

    addContentVersion

    public any addContentVersion(any contentVersion)

    Parameters:
    contentVersion

    addCustomField

    public any addCustomField(any customField)

    Parameters:
    customField

    addExpiredTime

    public any addExpiredTime(any hour, any minute)

    add expired timestamp to property

    Parameters:
    hour
    minute

    addJoinedExpiredTime

    public any addJoinedExpiredTime(string timeString)

    add expired timestamp to property

    Parameters:
    timeString - The joined time string (e.g., 12:00)

    addJoinedPublishedTime

    public any addJoinedPublishedTime(string timeString)

    add published timestamp to property

    Parameters:
    timeString - The joined time string (e.g., 12:00)

    addLinkedContent

    public any addLinkedContent(any linkedContent)

    Parameters:
    linkedContent

    addNewContentVersion

    public BaseContent addNewContentVersion(any content, [any changelog=''], any author, [boolean isPreview='false'])

    Add a new content version to the content object. This does not persist the version. It just makes sure that the content object receives a new active version and it deactivates the previous version. Persisting is done by the handler/service not by this method.

    Parameters:
    content - The incoming content string to store as the new version content
    changelog - The changelog commit message, defaults to empty string
    author - The author object that is making the edit
    isPreview - Is this a preview version or a real version
    Returns:
    The same content object

    addPublishedTime

    public any addPublishedTime(any hour, any minute)

    add published timestamp to property

    Parameters:
    hour
    minute

    addRelatedContent

    public any addRelatedContent(any relatedContent)

    Parameters:
    relatedContent

    applyContentTemplate

    public BaseContent applyContentTemplate()

    Apply any assigned content templates to this instance


    buildContentCacheCleanupKey

    public string buildContentCacheCleanupKey()

    This builds a partial cache key so we can clean from the cache many permutations of the content object


    buildContentCacheKey

    public string buildContentCacheKey()

    Build content cache keys according to sent content object


    canCacheContent

    public boolean canCacheContent()

    Verify we can do content caching on this content object using global and local rules


    clone

    public BaseContent clone(any author, any original, any originalService, boolean publish, any originalSlugRoot, any newSlugRoot)

    Clones the object and stores it in the database - Wipe primary key, and descendant keys - Prepare for cloning of entire hierarchies - Make sure categories are cloned

    Parameters:
    author - The author doing the cloning
    original - The original content object that will be cloned into this content object
    originalService - The ContentBox content service object
    publish - Publish pages or leave as drafts
    originalSlugRoot - The original slug that will be replaced in all cloned content
    newSlugRoot - The new slug root that will be replaced in all cloned content

    commentsAllowed

    public boolean commentsAllowed()

    Determines if the content object can have comments or not


    getActiveContent

    public ContentVersion getActiveContent()

    Get the latest active version object, empty new one if none assigned


    getAllowComments

    public string getAllowComments()


    getAuthor

    public any getAuthor()

    Shorthand Author from latest version or null if any yet


    getAuthorEmail

    public string getAuthorEmail()

    Shorthand Author email from latest version


    getAuthorName

    public string getAuthorName()

    Shorthand Author name from latest version


    getCache

    public string getCache()


    getCacheLastAccessTimeout

    public string getCacheLastAccessTimeout()


    getCacheTimeout

    public string getCacheTimeout()


    getCategories

    public string getCategories()


    getCategoriesArray

    public array getCategoriesArray()

    Get an array of category slugs for this content object


    getCategoriesList

    public string getCategoriesList()

    Get a list string of the categories this content object has.

    Returns:
    The category list or `Uncategorized` if it doesn't have any

    getCategoryService

    public string getCategoryService()


    getChildContentTemplate

    public string getChildContentTemplate()


    getChildren

    public string getChildren()


    getChildrenSnapshot

    public array getChildrenSnapshot()

    Build the array of children snapshots


    getCommentSubscriptions

    public string getCommentSubscriptions()


    getComments

    public string getComments()


    getContent

    public string getContent()

    Retrieves the latest content string from the latest version un-translated


    getContentID

    public string getContentID()


    getContentService

    public string getContentService()


    getContentTemplate

    public any getContentTemplate()

    Getter overload to return either the assigned template or the global template for the site


    getContentTemplateService

    public string getContentTemplateService()


    getContentType

    public string getContentType()


    getContentVersionService

    public string getContentVersionService()


    getContentVersions

    public string getContentVersions()


    getCreatedDate

    public string getCreatedDate()


    getCreator

    public string getCreator()


    getCreatorEmail

    public string getCreatorEmail()

    Shorthand Creator email


    getCreatorName

    public string getCreatorName()

    Shorthand Creator name


    getCreatorSnapshot

    public struct getCreatorSnapshot()

    Build a creator snapshot


    getCustomField

    public any getCustomField(any key, [any defaultValue])

    Shortcut to get a custom field value

    Parameters:
    key - The custom field key to get
    defaultValue - The default value if the key is not found.

    getCustomFieldService

    public string getCustomFieldService()


    getCustomFields

    public string getCustomFields()


    getCustomFieldsAsStruct

    public struct getCustomFieldsAsStruct()

    Get custom fields as a structure representation


    getDisplayExpireDate

    public string getDisplayExpireDate([any dateFormat='[runtime expression]'], [any timeFormat='[runtime expression]'], [boolean showTime='true'])

    Get the expire date using the default date format and time format If the expire date is null or empty an empty string is returned.

    Parameters:
    dateFormat - The date format to use, defaulted by ContentBox to mmm dd, yyyy
    timeFormat - The time format to use, defaulted by ContentBox to HH:mm:ss z
    showTime - Show the time or just the date

    getDisplayPublishedDate

    public string getDisplayPublishedDate([any dateFormat='[runtime expression]'], [any timeFormat='[runtime expression]'], [boolean showTime='true'])

    Get the published date using the default date format and time format If the publish date is null or empty an empty string is returned.

    Parameters:
    dateFormat - The date format to use, defaulted by ContentBox to mmm dd, yyyy
    timeFormat - The time format to use, defaulted by ContentBox to HH:mm:ss z
    showTime - Show the time or just the date

    getExpireDate

    public string getExpireDate()


    getExpireDateTime

    public string getExpireDateTime()

    This method retrieves the time of the expiration for the content object in UTC timezone. The format expected back is {hour}:{minute}. If the expire date is null an empty string is returned.

    Returns:
    The expire date time as {hour}:{minute}.

    getFeaturedImage

    public string getFeaturedImage()


    getFeaturedImageURL

    public any getFeaturedImageURL()

    Returns the URL of the featured image


    getHTMLDescription

    public string getHTMLDescription()


    getHTMLKeywords

    public string getHTMLKeywords()


    getHTMLTitle

    public string getHTMLTitle()


    getI18n

    public string getI18n()


    getInfoSnapshot

    public struct getInfoSnapshot()

    Utility method to get a snapshot of this content object


    getIsDeleted

    public string getIsDeleted()


    getIsPublished

    public string getIsPublished()


    getJSONPrettyPrint

    public string getJSONPrettyPrint()


    getLastEditorSnapshot

    public struct getLastEditorSnapshot()

    Build a last editor snapshot


    getLinkedContent

    public string getLinkedContent()


    getLinkedContentSnapshot

    public array getLinkedContentSnapshot()

    Build the array of linked content snapshots


    getMarkup

    public string getMarkup()


    getMediaService

    public string getMediaService()


    getModifiedDate

    public string getModifiedDate()


    getNumberOfActiveVersions

    public numeric getNumberOfActiveVersions()

    Get the total number of active versions this content object has


    getNumberOfApprovedComments

    public numeric getNumberOfApprovedComments()

    Get the total number of approved comments this content object has


    getNumberOfChildren

    public numeric getNumberOfChildren()

    Get the number of children


    getNumberOfComments

    public numeric getNumberOfComments()

    Get the total number of comments this content object has


    getNumberOfHits

    public numeric getNumberOfHits()

    Get the number of hits


    getNumberOfVersions

    public numeric getNumberOfVersions()

    Get the total number of versions this content object has


    getParent

    public string getParent()


    getParentID

    public any getParentID()

    Get parent ID if set or empty if none

    Returns:
    The parent ID or empty value if none attached

    getParentName

    public any getParentName()

    Get parent name or empty if none

    Returns:
    The parent name or empty value if none attached

    getParentSnapshot

    public struct getParentSnapshot()

    Build a parent snapshot


    getPasswordProtection

    public string getPasswordProtection()


    getPublishedDate

    public string getPublishedDate()


    getPublishedDateTime

    public string getPublishedDateTime()

    This method retrieves the time of the publishing for the content object in UTC timezone. The format expected back is {hour}:{minute}. If the publish date is null an empty string is returned.

    Returns:
    The published date time as {hour}:{minute}.

    getRelatedContent

    public string getRelatedContent()


    getRelatedContentIDs

    public string getRelatedContentIDs()

    Returns a list of active related content for this piece of content


    getRelatedContentSnapshot

    public array getRelatedContentSnapshot()

    Build the array of related content snapshots


    getRenderedContent

    public any getRenderedContent()

    Shortcut to get the rendered content


    getRenderedExcerpt

    public any getRenderedExcerpt()

    Shortcut to get the rendered excerpt


    getSettingService

    public string getSettingService()


    getShowInSearch

    public string getShowInSearch()


    getSite

    public string getSite()


    getSiteID

    public any getSiteID()

    Shortcut to get the site id


    getSiteName

    public any getSiteName()

    Shortcut to get the site name


    getSiteSlug

    public any getSiteSlug()

    Shortcut to get the site slug


    getSiteSnapshot

    public struct getSiteSnapshot()

    Build a site snapshot


    getSlug

    public string getSlug()


    getStats

    public string getStats()


    getTitle

    public string getTitle()


    hasActiveContent

    public boolean hasActiveContent()

    Verify if this content object has an active version with content


    hasCategories

    public boolean hasCategories([any categories])

    Parameters:
    categories

    hasChild

    public boolean hasChild([any child])

    Parameters:
    child

    hasChildContentTemplate

    public boolean hasChildContentTemplate([any childContentTemplate])

    Parameters:
    childContentTemplate

    hasComment

    public boolean hasComment([any comment])

    Parameters:
    comment

    hasCommentSubscription

    public boolean hasCommentSubscription([any commentSubscription])

    Parameters:
    commentSubscription

    hasContentTemplate

    public boolean hasContentTemplate([any contentTemplate])

    Parameters:
    contentTemplate

    hasContentVersion

    public boolean hasContentVersion([any contentVersion])

    Parameters:
    contentVersion

    hasCreator

    public boolean hasCreator([any creator])

    Parameters:
    creator

    hasCustomField

    public boolean hasCustomField([any customField])

    Parameters:
    customField

    hasLinkedContent

    public boolean hasLinkedContent([any linkedContent])

    Parameters:
    linkedContent

    hasParent

    public boolean hasParent([any parent])

    Parameters:
    parent

    hasRelatedContent

    public boolean hasRelatedContent([any relatedContent])

    Parameters:
    relatedContent

    hasSite

    public boolean hasSite([any site])

    Parameters:
    site

    hasStats

    public boolean hasStats([any stats])

    Parameters:
    stats

    inflateCustomFields

    public any inflateCustomFields(numeric fieldCount, struct memento)

    Inflate custom fields from the incoming count and memento structure

    Parameters:
    fieldCount
    memento

    inflateRelatedContent

    public BaseContent inflateRelatedContent(any relatedContent)

    Inflates from comma-delimited list (or array) of id's

    Parameters:
    relatedContent - The list or array of relatedContent ids

    isContentPublished

    public boolean isContentPublished()

    Bit that denotes if the content has been published or not


    isContentStore

    public boolean isContentStore()

    Determines if the content object is a content store type


    isExpired

    public boolean isExpired()

    Bit that denotes if the content has expired or not, in order to be expired the content must have been published as well


    isLoaded

    public boolean isLoaded()

    Is entity loaded

    Overrides:
    isLoaded in class BaseEntityMethods

    isPasswordProtected

    public boolean isPasswordProtected()

    isPassword Protected


    isPublishedInFuture

    public boolean isPublishedInFuture()

    Bit that denotes if the content has been published or not in the future


    isSameSite

    public boolean isSameSite(any site)

    Verifies that the incoming site is the same as the content has already

    Parameters:
    site - The site id or site object to verify

    maxContentVersionChecks

    private any maxContentVersionChecks()

    Verify and rotate maximum content versions


    onDIComplete

    public any onDIComplete()

    Prepare the instance for usage


    removeAllCategories

    public BaseContent removeAllCategories()


    removeAllCustomFields

    public BaseContent removeAllCustomFields()


    removeAllLinkedContent

    public BaseContent removeAllLinkedContent()


    removeCategories

    public BaseContent removeCategories(any category)

    Remove only if it's found in the content object

    Parameters:
    category

    removeChild

    public boolean removeChild(any child)

    Parameters:
    child

    removeComment

    public boolean removeComment(any comment)

    Parameters:
    comment

    removeCommentSubscription

    public boolean removeCommentSubscription(any commentSubscription)

    Parameters:
    commentSubscription

    removeContentVersion

    public boolean removeContentVersion(any contentVersion)

    Parameters:
    contentVersion

    removeCustomField

    public boolean removeCustomField(any customField)

    Parameters:
    customField

    removeLinkedContent

    public boolean removeLinkedContent(any linkedContent)

    Parameters:
    linkedContent

    removeRelatedContent

    public boolean removeRelatedContent(any relatedContent)

    Parameters:
    relatedContent

    renderContent

    public any renderContent()

    Render content out using translations, caching, etc.


    renderContentSilent

    public any renderContentSilent([any content='[runtime expression]'])

    Renders the content silently so no caching, or extra fluff is done, just content translation rendering.

    Parameters:
    content - The content markup to translate, by default it uses the active content version's content

    setActiveContent

    public BaseContent setActiveContent(any content)

    Set the active content version manually, usually great for previews

    Parameters:
    content - The content to set as the active version

    setAllowComments

    public any setAllowComments(any allowComments)

    Parameters:
    allowComments

    setCache

    public any setCache(any cache)

    Parameters:
    cache

    setCacheLastAccessTimeout

    public any setCacheLastAccessTimeout(any cacheLastAccessTimeout)

    Parameters:
    cacheLastAccessTimeout

    setCacheTimeout

    public any setCacheTimeout(any cacheTimeout)

    Parameters:
    cacheTimeout

    setCategories

    public any setCategories(array categories)

    Parameters:
    categories

    setCategoryService

    public any setCategoryService(any categoryService)

    Parameters:
    categoryService

    setChildContentTemplate

    public any setChildContentTemplate(any childContentTemplate)

    Parameters:
    childContentTemplate

    setChildren

    public BaseContent setChildren(array children)

    Override the setChildren

    Parameters:
    children

    setCommentSubscriptions

    public any setCommentSubscriptions(array commentSubscriptions)

    Parameters:
    commentSubscriptions

    setComments

    public BaseContent setComments(array comments)

    Override the setComments

    Parameters:
    comments

    setContentID

    public any setContentID(any contentID)

    Parameters:
    contentID

    setContentService

    public any setContentService(any contentService)

    Parameters:
    contentService

    setContentTemplate

    public any setContentTemplate(any contentTemplate)

    Parameters:
    contentTemplate

    setContentTemplateService

    public any setContentTemplateService(any contentTemplateService)

    Parameters:
    contentTemplateService

    setContentVersionService

    public any setContentVersionService(any contentVersionService)

    Parameters:
    contentVersionService

    setContentVersions

    public BaseContent setContentVersions(array contentVersions)

    Override the setContentVersions

    Parameters:
    contentVersions

    setCreatedDate

    public any setCreatedDate(date createdDate)

    Parameters:
    createdDate

    setCreator

    public any setCreator(any creator)

    Parameters:
    creator

    setCustomFieldService

    public any setCustomFieldService(any customFieldService)

    Parameters:
    customFieldService

    setCustomFields

    public BaseContent setCustomFields(array customFields)

    Override the setter

    Parameters:
    customFields

    setExpireDate

    public any setExpireDate(any expireDate)

    Parameters:
    expireDate

    setFeaturedImage

    public any setFeaturedImage(any featuredImage)

    Parameters:
    featuredImage

    setHTMLDescription

    public any setHTMLDescription(any HTMLDescription)

    Parameters:
    HTMLDescription

    setHTMLKeywords

    public any setHTMLKeywords(any HTMLKeywords)

    Parameters:
    HTMLKeywords

    setHTMLTitle

    public any setHTMLTitle(any HTMLTitle)

    Parameters:
    HTMLTitle

    setI18n

    public any setI18n(any i18n)

    Parameters:
    i18n

    setIsDeleted

    public any setIsDeleted(any isDeleted)

    Parameters:
    isDeleted

    setIsPublished

    public any setIsPublished(any isPublished)

    Parameters:
    isPublished

    setJSONPrettyPrint

    public any setJSONPrettyPrint(any JSONPrettyPrint)

    Parameters:
    JSONPrettyPrint

    setLinkedContent

    public any setLinkedContent(array linkedContent)

    Parameters:
    linkedContent

    setMarkup

    public any setMarkup(any markup)

    Parameters:
    markup

    setMediaService

    public any setMediaService(any mediaService)

    Parameters:
    mediaService

    setModifiedDate

    public any setModifiedDate(date modifiedDate)

    Parameters:
    modifiedDate

    setNumberOfChildren

    public any setNumberOfChildren(any numberOfChildren)

    Parameters:
    numberOfChildren

    setNumberOfComments

    public any setNumberOfComments(any numberOfComments)

    Parameters:
    numberOfComments

    setNumberOfHits

    public any setNumberOfHits(any numberOfHits)

    Parameters:
    numberOfHits

    setNumberOfVersions

    public any setNumberOfVersions(any numberOfVersions)

    Parameters:
    numberOfVersions

    setParent

    public BaseContent setParent([any parent])

    Override setter as we do some hiearchy slug magic when setting a parent

    Parameters:
    parent - The parent object or null

    setPasswordProtection

    public any setPasswordProtection(any passwordProtection)

    Parameters:
    passwordProtection

    setPublishedDate

    public any setPublishedDate(any publishedDate)

    Parameters:
    publishedDate

    setRelatedContent

    public BaseContent setRelatedContent(array relatedContent)

    Override the setRelatedContent

    Parameters:
    relatedContent - The related content to set

    setRenderedContent

    public any setRenderedContent(any renderedContent)

    Parameters:
    renderedContent

    setSettingService

    public any setSettingService(any settingService)

    Parameters:
    settingService

    setShowInSearch

    public any setShowInSearch(any showInSearch)

    Parameters:
    showInSearch

    setSite

    public any setSite(any site)

    Parameters:
    site

    setSlug

    public any setSlug(any slug)

    Parameters:
    slug

    setStats

    public any setStats(any stats)

    Parameters:
    stats

    setTitle

    public any setTitle(any title)

    Parameters:
    title