lucee.Componentcborm.models.BaseORMService
cborm.models.VirtualEntityService
contentbox.models.content.ContentService
contentbox.models.content.EntryService
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- Manages blog entry content
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
contentService
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
any
|
findPublishedEntriesByDate([numeric year='0'], [numeric month='0'], [numeric day='0'], [numeric max='0'], [numeric offset='0'], [boolean asQuery='false'], [string siteId=''])
Find published entries by date filters. |
array
|
getAllForExport(any site)
Get all site content for export as flat data. |
any
|
getArchiveReport()
Get a query report of entries archive. |
any
|
save(any entry, [string originalSlug=''])
Save an entry. |
struct
|
search([string search=''], [string isPublished='any'], [string author='all'], [string creator='all'], [string category='all'], [numeric max='0'], [numeric offset='0'], [string sortOrder=''], [boolean searchActiveContent='true'], [boolean showInSearch='false'], [string siteId=''], [string propertyList])
Search for blog entries according to many filters. |
Methods inherited from class cborm.models.VirtualEntityService |
---|
autoCast, convertIdValueToJavaType, convertValueToJavaType, count, countWhere, deleteAll, deleteByID, deleteByQuery, deleteWhere, evictCollection, executeQuery, exists, findAllWhere, findWhere, get, getAll, getEntityName, getKey, getOrFail, getPropertyNames, getTableName, idCast, list, new, newCriteria, onMissingMethod, setEntityName |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyinject
- id:ContentService@contentboxserializable
- trueMethod Detail |
---|
Find published entries by date filters
year
- The year to filter onmonth
- The month to filter onday
- The day to filter onmax
- The maximum records to returnoffset
- The offset on the paginationasQuery
- Return query or array of structssiteId
- The site ID to filter onGet all site content for export as flat data
getAllForExport
in class
ContentService
site
- The site to get the export fromGet a query report of entries archive
Save an entry
save
in class
cborm.models.BaseORMService
entry
- The entry to save or updateoriginalSlug
- The original slug if the save is an updateSearch for blog entries according to many filters
search
- The search term to search onisPublished
- Boolean bit to search if page is published or not, pass 'any' or not to ignore. Default is `any`author
- The authorID to filter on, pass 'all' to ignore filtercreator
- The creatorID to filter on, don't pass or pass an empty value to ignore, defaults to 'all'category
- The categorie(s) to filter on. You can also pass 'all' or 'none'max
- The maximum records to returnoffset
- The offset on the paginationsortOrder
- Sorting of the results, defaults to page title ascsearchActiveContent
- If true, it searches title and content on the page, else it just searches on titleshowInSearch
- If true, it makes sure content has been stored as searchable, defaults to false, which means it searches no matter what this bit sayssiteId
- The site ID to filter onpropertyList
- A list of properties to retrieve as a projection instead of array of objects