contentbox.models.content

Class Category

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

ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- I content category

Class Attributes:
  • entityname : cbCategory
  •  
  • cacheuse : read-write
  •  
  • table : cb_category
  •  
  • synchronized : false
  •  
  • cachename : cbCategory
  •  
  • accessors : false
  •  
  • persistent : true
  •  
    Property Summary
    type property default serializable required
    any category


    • access = public
    • returntype = any
    • notnull = true
    • length = 200
    true false
    any categoryID


    • access = public
    • fieldtype = id
    • returntype = any
    • params = { allocationSize = 1, sequence = 'categoryID_seq' }
    • generator = native
    • setter = no
    true false
    any categoryService


    • access = public
    • returntype = any
    • inject = categoryService@cb
    • persistent = false
    true false
    date createdDate


    • access = public
    • returntype = any
    • notnull = true
    • ormtype = timestamp
    • update = false
    • index = idx_createDate
    true false
    any isDeleted


    • access = public
    • dbdefault = 0
    • returntype = any
    • notnull = true
    • ormtype = boolean
    • index = idx_deleted
    • sqltype = bit
    false true false
    date modifiedDate


    • access = public
    • returntype = any
    • notnull = true
    • ormtype = timestamp
    • index = idx_modifiedDate
    true false
    any numberOfEntries


    • access = public
    • returntype = any
    • formula = select count(*) from cb_contentCategories as contentCategories, cb_entry as entry, cb_content as content where contentCategories.FK_categoryID=categoryID and contentCategories.FK_contentID = entry.contentID and entry.contentID = content.contentID and content.isPublished = 1
    true false
    any numberOfPages


    • access = public
    • returntype = any
    • formula = select count(*) from cb_contentCategories as contentCategories, cb_page as page, cb_content as content where contentCategories.FK_categoryID=categoryID and contentCategories.FK_contentID = page.contentID and page.contentID = content.contentID and content.isPublished = 1
    true false
    any slug


    • access = public
    • unique = true
    • returntype = any
    • notnull = true
    • index = idx_categorySlug
    • length = 200
    true false
    Method Summary
    string getCategory()
    string getCategoryID()
    string getCategoryService()
    struct getMemento([any excludes=''])
         Get memento representation.
    string getNumberOfEntries()
    string getNumberOfPages()
    string getSlug()
    any setCategory(any category)
    any setCategoryService(any categoryService)
    any setNumberOfEntries(any numberOfEntries)
    any setNumberOfPages(any numberOfPages)
    any setSlug(any slug)
     
    Methods inherited from class contentbox.models.BaseEntity
    getCreatedDate, getIsDeleted, getModifiedDate, setCreatedDate, setIsDeleted, setModifiedDate
     
    Methods inherited from class contentbox.models.BaseEntityMethods
    getBaseMemento, getDisplayCreatedDate, getDisplayModifiedDate, init, isLoaded, preInsert, preUpdate
     
    Methods inherited from class lucee.Component
    None

    Property Detail

    category

    property any category

    Attributes:
    access - public
    required - false
    returntype - any
    notnull - true
    length - 200
    serializable - true

    categoryID

    property any categoryID

    Attributes:
    access - public
    required - false
    fieldtype - id
    returntype - any
    params - { allocationSize = 1, sequence = 'categoryID_seq' }
    generator - native
    serializable - true
    setter - no

    categoryService

    property any categoryService

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

    createdDate

    property date createdDate

    Attributes:
    access - public
    required - false
    returntype - any
    notnull - true
    ormtype - timestamp
    update - false
    index - idx_createDate
    serializable - true

    isDeleted

    property any isDeleted = [false]

    Attributes:
    access - public
    required - false
    dbdefault - 0
    returntype - any
    notnull - true
    ormtype - boolean
    index - idx_deleted
    serializable - true
    sqltype - bit

    modifiedDate

    property date modifiedDate

    Attributes:
    access - public
    required - false
    returntype - any
    notnull - true
    ormtype - timestamp
    index - idx_modifiedDate
    serializable - true

    numberOfEntries

    property any numberOfEntries

    Attributes:
    access - public
    required - false
    returntype - any
    formula - select count(*) from cb_contentCategories as contentCategories, cb_entry as entry, cb_content as content where contentCategories.FK_categoryID=categoryID and contentCategories.FK_contentID = entry.contentID and entry.contentID = content.contentID and content.isPublished = 1
    serializable - true

    numberOfPages

    property any numberOfPages

    Attributes:
    access - public
    required - false
    returntype - any
    formula - select count(*) from cb_contentCategories as contentCategories, cb_page as page, cb_content as content where contentCategories.FK_categoryID=categoryID and contentCategories.FK_contentID = page.contentID and page.contentID = content.contentID and content.isPublished = 1
    serializable - true

    slug

    property any slug

    Attributes:
    access - public
    unique - true
    required - false
    returntype - any
    notnull - true
    index - idx_categorySlug
    length - 200
    serializable - true

    Method Detail

    getCategory

    public string getCategory()


    getCategoryID

    public string getCategoryID()


    getCategoryService

    public string getCategoryService()


    getMemento

    public struct getMemento([any excludes=''])

    Get memento representation

    Parameters:
    excludes

    getNumberOfEntries

    public string getNumberOfEntries()


    getNumberOfPages

    public string getNumberOfPages()


    getSlug

    public string getSlug()


    setCategory

    public any setCategory(any category)

    Parameters:
    category

    setCategoryService

    public any setCategoryService(any categoryService)

    Parameters:
    categoryService

    setNumberOfEntries

    public any setNumberOfEntries(any numberOfEntries)

    Parameters:
    numberOfEntries

    setNumberOfPages

    public any setNumberOfPages(any numberOfPages)

    Parameters:
    numberOfPages

    setSlug

    public any setSlug(any slug)

    Parameters:
    slug