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 am an awesome 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
|
any
|
isPublic
|
true
|
true
|
false
|
date
|
modifiedDate
|
true
|
false
|
|
any
|
numberOfContentStore
|
true
|
false
|
|
any
|
numberOfEntries
|
true
|
false
|
|
any
|
numberOfPages
|
true
|
false
|
|
any
|
pageService
|
true
|
false
|
|
any
|
settingService
|
true
|
false
|
|
any
|
site
|
true
|
false
|
|
any
|
slug
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
string
|
getCategory()
|
string
|
getCategoryID()
|
string
|
getCategoryService()
|
string
|
getContentStoreService()
|
string
|
getEntryService()
|
string
|
getIsPublic()
|
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
|
getSettingService()
|
string
|
getSite()
|
any
|
getSiteID()
Shortcut to get the site id. |
struct
|
getSiteSnapshot()
Build a site snapshot. |
string
|
getSlug()
|
boolean
|
hasSite([any site])
|
any
|
setCategory(any category)
|
any
|
setCategoryID(any categoryID)
|
any
|
setCategoryService(any categoryService)
|
any
|
setContentStoreService(any contentStoreService)
|
any
|
setEntryService(any entryService)
|
any
|
setIsPublic(any isPublic)
|
any
|
setNumberOfContentStore(any numberOfContentStore)
|
any
|
setNumberOfEntries(any numberOfEntries)
|
any
|
setNumberOfPages(any numberOfPages)
|
any
|
setPageService(any pageService)
|
any
|
setSettingService(any settingService)
|
any
|
setSite(any site)
|
any
|
setSlug(any slug)
|
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 |
---|
Constructor
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anycolumn
- categorynotnull
- trueindex
- idx_categoryNamelength
- 200serializable
- trueaccess
- publicrequired
- falsefieldtype
- idreturntype
- anycolumn
- categoryIDormtype
- stringupdate
- falsegenerator
- uuidlength
- 36serializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- provider:categoryService@contentboxpersistent
- falseserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- provider:contentStoreService@contentboxpersistent
- falseserializable
- trueaccess
- publicrequired
- falsereturntype
- anycolumn
- createdDatenotnull
- trueormtype
- timestampupdate
- falsepersistent
- trueserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- provider:entryService@contentboxpersistent
- falseserializable
- trueaccess
- publicrequired
- falsereturntype
- anycolumn
- isDeletednotnull
- trueormtype
- booleanpersistent
- trueserializable
- trueaccess
- publicrequired
- falsereturntype
- anycolumn
- isPublicnotnull
- falseormtype
- booleanindex
- idx_isPublicserializable
- trueaccess
- publicrequired
- falsereturntype
- anycolumn
- modifiedDatenotnull
- trueormtype
- timestamppersistent
- trueserializable
- 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
- provider:pageService@contentboxpersistent
- falseserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- provider:settingService@contentboxpersistent
- falseserializable
- trueaccess
- publicrequired
- falsefieldtype
- many-to-onereturntype
- anyfetch
- joinnotnull
- truefkcolumn
- FK_siteIDserializable
- truecfc
- contentbox.models.system.Sitelazy
- trueaccess
- publicrequired
- falsereturntype
- anycolumn
- slugnotnull
- trueindex
- idx_categorySluglength
- 200serializable
- trueMethod Detail |
---|
Get 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.
Shortcut to get the site id
Build a site snapshot
site
category
categoryID
categoryService
contentStoreService
entryService
isPublic
numberOfContentStore
numberOfEntries
numberOfPages
pageService
settingService
site
slug