lucee.Componentcborm.models.BaseORMService
cborm.models.VirtualEntityService
contentbox.models.content.ContentTemplateService
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- Template service for contentbox
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
contentService
|
true
|
false
|
|
any
|
dateUtil
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
boolean
|
delete(any template)
Delete a template which also removes itself from all many-to-many relationships. |
array
|
getAllForExport(any site)
Get all data prepared for export. |
array
|
getAvailableForContentType(string contentType, contentbox.models.content.Site site, [string fields])
Gets all of the available templates for a content type. |
string
|
importFromData(any importData, [boolean override='false'], [any importLog])
Import data from an array of structures or a single structure of data. |
string
|
importFromFile(any importFile, [boolean override='false'])
Import data from a ContentBox JSON file. |
ContentTemplate
|
newFromContentItem(BaseContent contentItem)
|
array
|
removeTemplateAssignments(any template)
Remove all content associations from a template and returns all the content objects it was removed from. |
struct
|
search([any search=''], [any siteID=''], [any max='0'], [any offset='0'], [any sortOrder='name asc'])
Content Template search with 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
- ContentService@contentboxserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- DateUtil@contentboxserializable
- trueMethod Detail |
---|
Delete a template which also removes itself from all many-to-many relationships
delete
in class
cborm.models.BaseORMService
template
- The template object to remove from the systemGet all data prepared for export
site
- The site to export fromGets all of the available templates for a content type
contentType
- the content type designationsite
- The site entityfields
- Any projection list fields to returnImport data from an array of structures or a single structure of data
importData
- A struct or array of data to importoverride
- Override content if found in the database, defaults to falseimportLog
- The import log bufferImport data from a ContentBox JSON file. Returns the import log
importFile
- The json file to importoverride
- Override content if found in the database, defaults to falsecontentItem
Remove all content associations from a template and returns all the content objects it was removed from
template
- The template objectContent Template search with filters
search
- The search term for the namesiteID
- The site id to filter onmax
- The max recordsoffset
- The offset to usesortOrder
- The sort order