contentbox.models.content

Class ContentVersion

lucee.Component
    extended by contentbox.models.BaseEntityMethods
      extended by contentbox.models.BaseEntity
        extended by contentbox.models.content.ContentVersion

ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- I am a versioned piece of content

Class Attributes:
  • entityname : cbContentVersion
  •  
  • cacheuse : read-write
  •  
  • table : cb_contentVersion
  •  
  • synchronized : false
  •  
  • cachename : cbContentVersion
  •  
  • batchsize : 25
  •  
  • accessors : false
  •  
  • persistent : true
  •  
    Property Summary
    type property default serializable required
    any author


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


    • access = public
    • returntype = any
    • column = changelog
    • notnull = false
    • ormtype = text
    • length = 8000
    true false
    any content


    • access = public
    • returntype = any
    • column = content
    • notnull = true
    • ormtype = text
    • length = 8000
    true false
    any contentVersionID


    • access = public
    • fieldtype = id
    • returntype = any
    • column = contentVersionID
    • ormtype = string
    • update = false
    • generator = uuid
    • length = 36
    true false
    date createdDate


    • access = public
    • returntype = any
    • column = createdDate
    • notnull = true
    • ormtype = timestamp
    • update = false
    • persistent = true
    true false
    any isActive


    • access = public
    • returntype = any
    • column = isActive
    • notnull = true
    • ormtype = boolean
    • index = idx_activeContentVersion,idx_contentVersions
    false true false
    any isDeleted


    • access = public
    • returntype = any
    • column = isDeleted
    • notnull = true
    • ormtype = boolean
    • persistent = true
    false true false
    date modifiedDate


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


    • access = public
    • fieldtype = many-to-one
    • returntype = any
    • fetch = join
    • notnull = true
    • index = idx_contentVersions
    • fkcolumn = FK_contentID
    • cfc = contentbox.models.content.BaseContent
    • lazy = true
    true false
    any renderedContent


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


    • access = public
    • returntype = any
    • column = version
    • notnull = true
    • ormtype = integer
    • index = idx_version
    1 true false
    Constructor Summary
    init()
    Method Summary
    string getAuthor()
    string getAuthorEmail()
         Shorthand Author email.
    string getAuthorName()
         Shorthand Author name.
    struct getAuthorSnapshot()
         Build the author snapshot.
    string getChangelog()
    string getContent()
    string getContentVersionID()
    string getIsActive()
    any getParentSlug()
         Get parent slug from the related content it belongs to.
    any getParentTitle()
         Get parent title from the related content it belongs to.
    string getRelatedContent()
    struct getRelatedContentSnapshot()
         Build a snapshot of the related content.
    string getRenderedContent()
    string getVersion()
    boolean hasAuthor([any author])
    boolean hasRelatedContent([any relatedContent])
    any renderContent()
         Render version content out.
    any setAuthor(any author)
    any setChangelog(any changelog)
    any setContent(any content)
    any setContentVersionID(any contentVersionID)
    any setIsActive(any isActive)
    any setRelatedContent(any relatedContent)
    any setRenderedContent(any renderedContent)
    any setVersion(any version)
     
    Methods inherited from class contentbox.models.BaseEntity
    getCreatedDate, getIsDeleted, getModifiedDate, setCreatedDate, setIsDeleted, setModifiedDate
     
    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

    init

    public init()


    Property Detail

    author

    property any author

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

    changelog

    property any changelog

    Attributes:
    access - public
    required - false
    returntype - any
    column - changelog
    notnull - false
    ormtype - text
    length - 8000
    serializable - true

    content

    property any content

    Attributes:
    access - public
    required - false
    returntype - any
    column - content
    notnull - true
    ormtype - text
    length - 8000
    serializable - true

    contentVersionID

    property any contentVersionID

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

    createdDate

    property date createdDate

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

    isActive

    property any isActive = [false]

    Attributes:
    access - public
    required - false
    returntype - any
    column - isActive
    notnull - true
    ormtype - boolean
    index - idx_activeContentVersion,idx_contentVersions
    serializable - true

    isDeleted

    property any isDeleted = [false]

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

    modifiedDate

    property date modifiedDate

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

    relatedContent

    property any relatedContent

    Attributes:
    access - public
    required - false
    fieldtype - many-to-one
    returntype - any
    fetch - join
    notnull - true
    index - idx_contentVersions
    fkcolumn - FK_contentID
    serializable - true
    cfc - contentbox.models.content.BaseContent
    lazy - true

    renderedContent

    property any renderedContent

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

    version

    property any version = [1]

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

    Method Detail

    getAuthor

    public string getAuthor()


    getAuthorEmail

    public string getAuthorEmail()

    Shorthand Author email


    getAuthorName

    public string getAuthorName()

    Shorthand Author name


    getAuthorSnapshot

    public struct getAuthorSnapshot()

    Build the author snapshot


    getChangelog

    public string getChangelog()


    getContent

    public string getContent()


    getContentVersionID

    public string getContentVersionID()


    getIsActive

    public string getIsActive()


    getParentSlug

    public any getParentSlug()

    Get parent slug from the related content it belongs to


    getParentTitle

    public any getParentTitle()

    Get parent title from the related content it belongs to


    getRelatedContent

    public string getRelatedContent()


    getRelatedContentSnapshot

    public struct getRelatedContentSnapshot()

    Build a snapshot of the related content


    getRenderedContent

    public string getRenderedContent()


    getVersion

    public string getVersion()


    hasAuthor

    public boolean hasAuthor([any author])

    Parameters:
    author

    hasRelatedContent

    public boolean hasRelatedContent([any relatedContent])

    Parameters:
    relatedContent

    renderContent

    public any renderContent()

    Render version content out


    setAuthor

    public any setAuthor(any author)

    Parameters:
    author

    setChangelog

    public any setChangelog(any changelog)

    Parameters:
    changelog

    setContent

    public any setContent(any content)

    Parameters:
    content

    setContentVersionID

    public any setContentVersionID(any contentVersionID)

    Parameters:
    contentVersionID

    setIsActive

    public any setIsActive(any isActive)

    Parameters:
    isActive

    setRelatedContent

    public any setRelatedContent(any relatedContent)

    Parameters:
    relatedContent

    setRenderedContent

    public any setRenderedContent(any renderedContent)

    Parameters:
    renderedContent

    setVersion

    public any setVersion(any version)

    Parameters:
    version