contentbox.models.content

Class Stats

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

ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- A class to track stats for content

Class Attributes:
  • entityname : cbStats
  •  
  • cacheuse : read-write
  •  
  • table : cb_stats
  •  
  • synchronized : false
  •  
  • cachename : cbStats
  •  
  • batchsize : 25
  •  
  • accessors : false
  •  
  • persistent : true
  •  
    Property Summary
    type property default serializable required
    date createdDate


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


    • access = public
    • returntype = any
    • column = hits
    • notnull = false
    • ormtype = long
    0 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 = one-to-one
    • returntype = any
    • fetch = join
    • notnull = true
    • fkcolumn = FK_contentID
    • cfc = contentbox.models.content.BaseContent
    • lazy = true
    true false
    any statsID


    • access = public
    • fieldtype = id
    • returntype = any
    • column = statsID
    • ormtype = string
    • update = false
    • generator = uuid
    • length = 36
    true false
    Constructor Summary
    init()
    Method Summary
    string getHits()
    string getRelatedContent()
    struct getRelatedContentSnapshot()
         Build a snapshot of the related content.
    string getStatsID()
    boolean hasRelatedContent([any relatedContent])
    any setHits(any hits)
    any setRelatedContent(any relatedContent)
    any setStatsID(any statsID)
     
    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

    createdDate

    property date createdDate

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

    hits

    property any hits = [0]

    Attributes:
    access - public
    required - false
    returntype - any
    column - hits
    notnull - false
    ormtype - long
    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 - one-to-one
    returntype - any
    fetch - join
    notnull - true
    fkcolumn - FK_contentID
    serializable - true
    cfc - contentbox.models.content.BaseContent
    lazy - true

    statsID

    property any statsID

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

    Method Detail

    getHits

    public string getHits()


    getRelatedContent

    public string getRelatedContent()


    getRelatedContentSnapshot

    public struct getRelatedContentSnapshot()

    Build a snapshot of the related content


    getStatsID

    public string getStatsID()


    hasRelatedContent

    public boolean hasRelatedContent([any relatedContent])

    Parameters:
    relatedContent

    setHits

    public any setHits(any hits)

    Parameters:
    hits

    setRelatedContent

    public any setRelatedContent(any relatedContent)

    Parameters:
    relatedContent

    setStatsID

    public any setStatsID(any statsID)

    Parameters:
    statsID