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
    any contentStoreService


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


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


    • access = public
    • returntype = any
    • inject = entryService@cb
    • persistent = false
    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 numberOfContentStore


    • access = public
    • returntype = any
    • formula = select count(*) from cb_contentCategories as contentCategories, cb_contentStore as contentStore, cb_content as content where contentCategories.FK_categoryID=categoryID and contentCategories.FK_contentID = contentStore.contentID and contentStore.contentID = content.contentID
    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
    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
    true false
    any pageService


    • access = public
    • returntype = any
    • inject = pageService@cb
    • persistent = false
    true false
    any slug


    • access = public
    • unique = true
    • returntype = any
    • notnull = true
    • index = idx_categorySlug
    • length = 200
    true false
    Constructor Summary
    init()
          Constructor.
    Method Summary
    string getCategory()
    string getCategoryID()
    string getCategoryService()
    string getContentStoreService()
    string getEntryService()
    struct getMemento([any excludes=''])
         Get memento representation.
    string getNumberOfContentStore()
    string getNumberOfEntries()
    string getNumberOfPages()
    private numeric getNumberOfPublishedContent(any service)
         Get the number of published content by category and service type.
    numeric getNumberOfPublishedContentStore()
         Helper to get the count of published content store for this category.
    numeric getNumberOfPublishedEntries()
         Helper to get the count of published entries for this category.
    numeric getNumberOfPublishedPages()
         Helper to get the count of published pages for this category.
    string getPageService()
    string getSlug()
    any setCategory(any category)
    any setCategoryService(any categoryService)
    any setContentStoreService(any contentStoreService)
    any setEntryService(any entryService)
    any setNumberOfContentStore(any numberOfContentStore)
    any setNumberOfEntries(any numberOfEntries)
    any setNumberOfPages(any numberOfPages)
    any setPageService(any pageService)
    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, isLoaded, preInsert, preUpdate
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init()

    Constructor


    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

    contentStoreService

    property any contentStoreService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - contentStoreService@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

    entryService

    property any entryService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - entryService@cb
    persistent - false
    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

    numberOfContentStore

    property any numberOfContentStore

    Attributes:
    access - public
    required - false
    returntype - any
    formula - select count(*) from cb_contentCategories as contentCategories, cb_contentStore as contentStore, cb_content as content where contentCategories.FK_categoryID=categoryID and contentCategories.FK_contentID = contentStore.contentID and contentStore.contentID = content.contentID
    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
    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
    serializable - true

    pageService

    property any pageService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - pageService@cb
    persistent - false
    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()


    getContentStoreService

    public string getContentStoreService()


    getEntryService

    public string getEntryService()


    getMemento

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

    Get memento representation

    Parameters:
    excludes - properties to exclude

    getNumberOfContentStore

    public string getNumberOfContentStore()


    getNumberOfEntries

    public string getNumberOfEntries()


    getNumberOfPages

    public string getNumberOfPages()


    getNumberOfPublishedContent

    private numeric getNumberOfPublishedContent(any service)

    Get the number of published content by category and service type

    Parameters:
    service - The target service to use.

    getNumberOfPublishedContentStore

    public numeric getNumberOfPublishedContentStore()

    Helper to get the count of published content store for this category.


    getNumberOfPublishedEntries

    public numeric getNumberOfPublishedEntries()

    Helper to get the count of published entries for this category.


    getNumberOfPublishedPages

    public numeric getNumberOfPublishedPages()

    Helper to get the count of published pages for this category.


    getPageService

    public string getPageService()


    getSlug

    public string getSlug()


    setCategory

    public any setCategory(any category)

    Parameters:
    category

    setCategoryService

    public any setCategoryService(any categoryService)

    Parameters:
    categoryService

    setContentStoreService

    public any setContentStoreService(any contentStoreService)

    Parameters:
    contentStoreService

    setEntryService

    public any setEntryService(any entryService)

    Parameters:
    entryService

    setNumberOfContentStore

    public any setNumberOfContentStore(any numberOfContentStore)

    Parameters:
    numberOfContentStore

    setNumberOfEntries

    public any setNumberOfEntries(any numberOfEntries)

    Parameters:
    numberOfEntries

    setNumberOfPages

    public any setNumberOfPages(any numberOfPages)

    Parameters:
    numberOfPages

    setPageService

    public any setPageService(any pageService)

    Parameters:
    pageService

    setSlug

    public any setSlug(any slug)

    Parameters:
    slug