lucee.Componentcontentbox.models.BaseEntityMethods
contentbox.models.BaseEntity
contentbox.models.content.Category
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- I content category
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
category
|
true
|
false
|
|
any
|
categoryID
|
true
|
false
|
|
any
|
categoryService
|
true
|
false
|
|
any
|
contentStoreService
|
true
|
false
|
|
date
|
createdDate
|
true
|
false
|
|
any
|
entryService
|
true
|
false
|
|
any
|
isDeleted
|
false
|
true
|
false
|
date
|
modifiedDate
|
true
|
false
|
|
any
|
numberOfContentStore
|
true
|
false
|
|
any
|
numberOfEntries
|
true
|
false
|
|
any
|
numberOfPages
|
true
|
false
|
|
any
|
pageService
|
true
|
false
|
|
any
|
slug
|
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 |
---|
Constructor
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anynotnull
- truelength
- 200serializable
- trueaccess
- publicrequired
- falsefieldtype
- idreturntype
- anyparams
- { allocationSize = 1, sequence = 'categoryID_seq' }generator
- nativeserializable
- truesetter
- noaccess
- publicrequired
- falsereturntype
- anyinject
- categoryService@cbpersistent
- falseserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- contentStoreService@cbpersistent
- falseserializable
- trueaccess
- publicrequired
- falsereturntype
- anynotnull
- trueormtype
- timestampupdate
- falseindex
- idx_createDateserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- entryService@cbpersistent
- falseserializable
- trueaccess
- publicrequired
- falsedbdefault
- 0returntype
- anynotnull
- trueormtype
- booleanindex
- idx_deletedserializable
- truesqltype
- bitaccess
- publicrequired
- falsereturntype
- anynotnull
- trueormtype
- timestampindex
- idx_modifiedDateserializable
- trueaccess
- publicrequired
- falsereturntype
- anyformula
- 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.contentIDserializable
- trueaccess
- publicrequired
- falsereturntype
- anyformula
- 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.contentIDserializable
- trueaccess
- publicrequired
- falsereturntype
- anyformula
- 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.contentIDserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- pageService@cbpersistent
- falseserializable
- trueaccess
- publicunique
- truerequired
- falsereturntype
- anynotnull
- trueindex
- idx_categorySluglength
- 200serializable
- trueMethod Detail |
---|
Get memento representation
excludes
- properties to excludeGet the number of published content by category and service type
service
- The target service to use.Helper to get the count of published content store for this category.
Helper to get the count of published entries for this category.
Helper to get the count of published pages for this category.
category
categoryService
contentStoreService
entryService
numberOfContentStore
numberOfEntries
numberOfPages
pageService
slug