|
ContentBox Core API 1.5.7 | ||||
FRAMES |
WEB-INF.cftags.componentcontentbox.model.content.BaseContent
public class BaseContent
A mapped super class used for contentbox content: entries and pages
Method Summary | |
---|---|
void |
ADDACTIVECONTENT(ContentVersion activeContent)
|
void |
ADDCHILD(BaseContent child)
|
void |
ADDCOMMENT(Comment comment)
|
void |
ADDCONTENTVERSION(ContentVersion contentVersion)
|
void |
ADDCUSTOMFIELD(CustomField customField)
|
any |
GETALLOWCOMMENTS()
|
any |
GETCACHE()
|
any |
GETCACHEBOX()
|
any |
GETCACHELASTACCESSTIMEOUT()
|
any |
GETCACHELAYOUT()
|
any |
GETCACHETIMEOUT()
|
array |
GETCATEGORIES()
|
any |
GETCATEGORYSERVICE()
|
array |
GETCHILDREN()
|
array |
GETCOMMENTS()
|
any |
GETCONTENTID()
|
any |
GETCONTENTSERVICE()
|
any |
GETCONTENTTYPE()
|
array |
GETCONTENTVERSIONS()
|
any |
GETCONTENTVERSIONSERVICE()
|
any |
GETCREATEDDATE()
|
any |
GETCREATOR()
|
array |
GETCUSTOMFIELDS()
|
any |
GETCUSTOMFIELDSERVICE()
|
any |
GETEXPIREDATE()
|
any |
GETHITS()
|
any |
GETHTMLDESCRIPTION()
|
any |
GETHTMLKEYWORDS()
|
any |
GETINTERCEPTORSERVICE()
|
any |
GETISPUBLISHED()
|
any |
GETMARKUP()
|
any |
GETNUMBEROFAPPROVEDCOMMENTS()
|
any |
GETNUMBEROFCHILDREN()
|
any |
GETNUMBEROFCOMMENTS()
|
any |
GETNUMBEROFVERSIONS()
|
any |
GETPARENT()
|
any |
GETPASSWORDPROTECTION()
|
any |
GETPUBLISHEDDATE()
|
any |
GETRENDEREDCONTENT()
|
any |
GETSETTINGSERVICE()
|
any |
GETSLUG()
|
any |
GETTITLE()
|
boolean |
HASACTIVECONTENT([ContentVersion activeContent])
|
boolean |
HASCATEGORIES([Category categories])
|
boolean |
HASCHILD([BaseContent children])
|
boolean |
HASCOMMENT([Comment comments])
|
boolean |
HASCONTENTVERSION([ContentVersion contentVersions])
|
boolean |
HASCREATOR()
|
boolean |
HASCUSTOMFIELD([CustomField customFields])
|
boolean |
HASPARENT()
|
boolean |
REMOVEACTIVECONTENT(ContentVersion activeContent)
|
boolean |
REMOVECHILD(BaseContent child)
|
boolean |
REMOVECOMMENT(Comment comment)
|
boolean |
REMOVECONTENTVERSION(ContentVersion contentVersion)
|
boolean |
REMOVECUSTOMFIELD(CustomField customField)
|
void |
SETACTIVECONTENT(array activeContent)
|
void |
SETALLOWCOMMENTS(any allowComments)
|
void |
SETCACHE(any cache)
|
void |
SETCACHEBOX(any cachebox)
|
void |
SETCACHELASTACCESSTIMEOUT(any cacheLastAccessTimeout)
|
void |
SETCACHELAYOUT(any cacheLayout)
|
void |
SETCACHETIMEOUT(any cacheTimeout)
|
void |
SETCATEGORYSERVICE(any categoryService)
|
void |
SETCONTENTSERVICE(any contentService)
|
void |
SETCONTENTVERSIONSERVICE(any contentVersionService)
|
void |
SETCREATEDDATE(any createdDate)
|
void |
SETCREATOR(any creator)
|
void |
SETCUSTOMFIELDSERVICE(any customFieldService)
|
void |
SETEXPIREDATE(any expireDate)
|
void |
SETHITS(any hits)
|
void |
SETHTMLDESCRIPTION(any HTMLDescription)
|
void |
SETHTMLKEYWORDS(any HTMLKeywords)
|
void |
SETINTERCEPTORSERVICE(any interceptorService)
|
void |
SETISPUBLISHED(any isPublished)
|
void |
SETMARKUP(any markup)
|
void |
SETNUMBEROFAPPROVEDCOMMENTS(any numberOfApprovedComments)
|
void |
SETNUMBEROFCHILDREN(any numberOfChildren)
|
void |
SETNUMBEROFCOMMENTS(any numberOfComments)
|
void |
SETNUMBEROFVERSIONS(any numberOfVersions)
|
void |
SETPARENT(any parent)
|
void |
SETPASSWORDPROTECTION(any passwordProtection)
|
void |
SETPUBLISHEDDATE(any publishedDate)
|
void |
SETRENDEREDCONTENT(any renderedContent)
|
void |
SETSETTINGSERVICE(any settingService)
|
void |
SETSLUG(any slug)
|
void |
SETTITLE(any title)
|
BaseContent |
addCategories(any category)
Bi directional add |
any |
addExpiredTime(any hour, any minute)
add expired timestamp to property |
any |
addNewContentVersion(any content, [any changelog=''], any author)
Add a new content version to save for this content object |
any |
addPublishedTime(any hour, any minute)
add published timestamp to property |
string |
buildContentCacheKey()
Build content cache keys according to sent content object |
boolean |
canCacheContent()
Verify we can do content caching on this content object using global and local rules |
any |
getActiveContent()
|
any |
getAuthor()
Shorthand Author from latest version or null if any yet |
string |
getAuthorEmail()
Shorthand Author email from latest version |
string |
getAuthorName()
Shorthand Author name from latest version |
any |
getCategoriesList()
get flat categories list |
any |
getContent()
|
string |
getCreatorEmail()
Shorthand Creator email |
string |
getCreatorName()
Shorthand Creator name |
string |
getDisplayCreatedDate()
Get formatted createdDate |
string |
getDisplayExpireDate()
Get formatted expireDate |
string |
getDisplayPublishedDate()
Get display publishedDate |
string |
getExpireDateForEditor([boolean showTime='false'])
Get display expireDate |
any |
getMemento()
Get a flat representation of this entry |
any |
getParentID()
Get parent ID if set or empty if none |
any |
getParentName()
Get parent name or empty if none |
string |
getPublishedDateForEditor([boolean showTime='false'])
Get display publishedDate |
any |
getRecursiveSlug([any separator='/'])
Get recursive slug paths to get ancestry, DEPRECATED |
any |
inflateCustomFields(numeric fieldCount, struct memento)
Inflate custom fields from the incoming count and memento structure |
boolean |
isContentPublished()
Bit that denotes if the content has been published or not |
boolean |
isExpired()
Bit that denotes if the content has expired or not, in order to be expired the content must have been published as well |
boolean |
isLoaded()
is loaded? |
boolean |
isPasswordProtected()
isPassword Protected |
boolean |
isPublishedInFuture()
Bit that denotes if the content has been published or not in the future |
private any |
maxContentVersionChecks()
|
BaseContent |
prepareForClone(any author, any original, any originalService, boolean publish, any originalSlugRoot, any newSlugRoot)
Wipe primary key, and descendant keys, and prepare for cloning of entire hierarchies |
BaseContent |
removeAllCategories()
|
BaseContent |
removeCategories(any category)
Bi directional remove |
any |
renderContent()
Render content out using translations, caching, etc |
any |
renderContentSilent([any content='[runtime expression]'])
Renders the content silently so no caching, or extra fluff is done, just content translation rendering |
BaseContent |
setCategories(array categories)
Override the setCategories |
BaseContent |
setChildren(array children)
Override the setChildren |
BaseContent |
setComments(array comments)
Override the setComments |
BaseContent |
setContentVersions(array contentVersions)
Override the setContentVersions |
BaseContent |
setCustomFields(array customFields)
Override the setCustomFields |
Methods inherited from class WEB-INF.cftags.component |
---|
|
Method Detail |
---|
public void ADDACTIVECONTENT(ContentVersion activeContent)
activeContent
public void ADDCHILD(BaseContent child)
child
public void ADDCOMMENT(Comment comment)
comment
public void ADDCONTENTVERSION(ContentVersion contentVersion)
contentVersion
public void ADDCUSTOMFIELD(CustomField customField)
customField
public any GETALLOWCOMMENTS()
public any GETCACHE()
public any GETCACHEBOX()
public any GETCACHELASTACCESSTIMEOUT()
public any GETCACHELAYOUT()
public any GETCACHETIMEOUT()
public array GETCATEGORIES()
public any GETCATEGORYSERVICE()
public array GETCHILDREN()
public array GETCOMMENTS()
public any GETCONTENTID()
public any GETCONTENTSERVICE()
public any GETCONTENTTYPE()
public array GETCONTENTVERSIONS()
public any GETCONTENTVERSIONSERVICE()
public any GETCREATEDDATE()
public any GETCREATOR()
public array GETCUSTOMFIELDS()
public any GETCUSTOMFIELDSERVICE()
public any GETEXPIREDATE()
public any GETHITS()
public any GETHTMLDESCRIPTION()
public any GETHTMLKEYWORDS()
public any GETINTERCEPTORSERVICE()
public any GETISPUBLISHED()
public any GETMARKUP()
public any GETNUMBEROFAPPROVEDCOMMENTS()
public any GETNUMBEROFCHILDREN()
public any GETNUMBEROFCOMMENTS()
public any GETNUMBEROFVERSIONS()
public any GETPARENT()
public any GETPASSWORDPROTECTION()
public any GETPUBLISHEDDATE()
public any GETRENDEREDCONTENT()
public any GETSETTINGSERVICE()
public any GETSLUG()
public any GETTITLE()
public boolean HASACTIVECONTENT([ContentVersion activeContent])
activeContent
public boolean HASCATEGORIES([Category categories])
categories
public boolean HASCHILD([BaseContent children])
children
public boolean HASCOMMENT([Comment comments])
comments
public boolean HASCONTENTVERSION([ContentVersion contentVersions])
contentVersions
public boolean HASCREATOR()
public boolean HASCUSTOMFIELD([CustomField customFields])
customFields
public boolean HASPARENT()
public boolean REMOVEACTIVECONTENT(ContentVersion activeContent)
activeContent
public boolean REMOVECHILD(BaseContent child)
child
public boolean REMOVECOMMENT(Comment comment)
comment
public boolean REMOVECONTENTVERSION(ContentVersion contentVersion)
contentVersion
public boolean REMOVECUSTOMFIELD(CustomField customField)
customField
public void SETACTIVECONTENT(array activeContent)
activeContent
public void SETALLOWCOMMENTS(any allowComments)
allowComments
public void SETCACHE(any cache)
cache
public void SETCACHEBOX(any cachebox)
cachebox
public void SETCACHELASTACCESSTIMEOUT(any cacheLastAccessTimeout)
cacheLastAccessTimeout
public void SETCACHELAYOUT(any cacheLayout)
cacheLayout
public void SETCACHETIMEOUT(any cacheTimeout)
cacheTimeout
public void SETCATEGORYSERVICE(any categoryService)
categoryService
public void SETCONTENTSERVICE(any contentService)
contentService
public void SETCONTENTVERSIONSERVICE(any contentVersionService)
contentVersionService
public void SETCREATEDDATE(any createdDate)
createdDate
public void SETCREATOR(any creator)
creator
public void SETCUSTOMFIELDSERVICE(any customFieldService)
customFieldService
public void SETEXPIREDATE(any expireDate)
expireDate
public void SETHITS(any hits)
hits
public void SETHTMLDESCRIPTION(any HTMLDescription)
HTMLDescription
public void SETHTMLKEYWORDS(any HTMLKeywords)
HTMLKeywords
public void SETINTERCEPTORSERVICE(any interceptorService)
interceptorService
public void SETISPUBLISHED(any isPublished)
isPublished
public void SETMARKUP(any markup)
markup
public void SETNUMBEROFAPPROVEDCOMMENTS(any numberOfApprovedComments)
numberOfApprovedComments
public void SETNUMBEROFCHILDREN(any numberOfChildren)
numberOfChildren
public void SETNUMBEROFCOMMENTS(any numberOfComments)
numberOfComments
public void SETNUMBEROFVERSIONS(any numberOfVersions)
numberOfVersions
public void SETPARENT(any parent)
parent
public void SETPASSWORDPROTECTION(any passwordProtection)
passwordProtection
public void SETPUBLISHEDDATE(any publishedDate)
publishedDate
public void SETRENDEREDCONTENT(any renderedContent)
renderedContent
public void SETSETTINGSERVICE(any settingService)
settingService
public void SETSLUG(any slug)
slug
public void SETTITLE(any title)
title
public BaseContent addCategories(any category)
category
public any addExpiredTime(any hour, any minute)
hour
minute
public any addNewContentVersion(any content, [any changelog=''], any author)
content
changelog
author
public any addPublishedTime(any hour, any minute)
hour
minute
public string buildContentCacheKey()
public boolean canCacheContent()
public any getActiveContent()
public any getAuthor()
public string getAuthorEmail()
public string getAuthorName()
public any getCategoriesList()
public any getContent()
public string getCreatorEmail()
public string getCreatorName()
public string getDisplayCreatedDate()
public string getDisplayExpireDate()
public string getDisplayPublishedDate()
public string getExpireDateForEditor([boolean showTime='false'])
showTime
public any getMemento()
public any getParentID()
public any getParentName()
public string getPublishedDateForEditor([boolean showTime='false'])
showTime
public any getRecursiveSlug([any separator='/'])
separator
public any inflateCustomFields(numeric fieldCount, struct memento)
fieldCount
memento
public boolean isContentPublished()
public boolean isExpired()
public boolean isLoaded()
public boolean isPasswordProtected()
public boolean isPublishedInFuture()
private any maxContentVersionChecks()
public BaseContent prepareForClone(any author, any original, any originalService, boolean publish, any originalSlugRoot, any newSlugRoot)
author
- The author doing the cloningoriginal
- The original content object that will be cloned into this content objectoriginalService
- The ContentBox content service objectpublish
- Publish pages or leave as draftsoriginalSlugRoot
- The original slug that will be replaced in all cloned contentnewSlugRoot
- The new slug root that will be replaced in all cloned contentpublic BaseContent removeAllCategories()
public BaseContent removeCategories(any category)
category
public any renderContent()
public any renderContentSilent([any content='[runtime expression]'])
content
- The content markup to translate, by default it uses the active content version's contentpublic BaseContent setCategories(array categories)
categories
public BaseContent setChildren(array children)
children
public BaseContent setComments(array comments)
comments
public BaseContent setContentVersions(array contentVersions)
contentVersions
public BaseContent setCustomFields(array customFields)
customFields
|
ContentBox Core API 1.5.7 | ||||
FRAMES |