|
ContentBox Core API 1.6.0 | ||||
FRAMES |
WEB-INF.cftags.componentcontentbox.model.content.Category
public class Category
******************************************************************************* ContentBox - A Modular Content Platform Copyright 2012 by Luis Majano and Ortus Solutions, Corp www.gocontentbox.org | www.luismajano.com | www.ortussolutions.com ******************************************************************************* Apache License, Version 2.0 Copyright Since [2012] [Luis Majano and Ortus Solutions,Corp] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ******************************************************************************* I content category
Property Summary | ||||
---|---|---|---|---|
Type | Property & Description | Default | Serializable | Required |
any
|
category
Attributes:
|
|
true
|
false
|
any
|
categoryID
Attributes:
|
|
true
|
false
|
array
|
content
Attributes:
|
|
true
|
false
|
any
|
numberOfEntries
Attributes:
|
|
true
|
false
|
any
|
numberOfPages
Attributes:
|
|
true
|
false
|
any
|
slug
Attributes:
|
|
true
|
false
|
Method Summary | |
---|---|
void |
ADDCONTENT(BaseContent content)
|
any |
GETCATEGORY()
get: |
any |
GETCATEGORYID()
get: |
array |
GETCONTENT()
get: |
any |
GETNUMBEROFENTRIES()
get: |
any |
GETNUMBEROFPAGES()
get: |
any |
GETSLUG()
get: |
boolean |
HASCONTENT([BaseContent content])
|
boolean |
REMOVECONTENT(BaseContent content)
|
Category |
SETCATEGORY(any category)
set: |
Category |
SETCONTENT(array content)
set: |
Category |
SETNUMBEROFENTRIES(any numberOfEntries)
set: |
Category |
SETNUMBEROFPAGES(any numberOfPages)
set: |
Category |
SETSLUG(any slug)
set: |
any |
getMemento()
Get memento representation |
boolean |
isLoaded()
is loaded? |
Category |
removeAllContent()
|
Methods inherited from class WEB-INF.cftags.component |
---|
None
|
Property Detail |
---|
any category
serializable
- truerequired
- falsenotnull
- truelength
- 200default
- any categoryID
generator
- nativefieldtype
- idserializable
- truerequired
- falsedefault
- setter
- falsearray content
serializable
- truelazy
- extradefault
- linktable
- cb_contentCategoriesfieldtype
- many-to-manyrequired
- falseinversejoincolumn
- FK_contentIDcascade
- allcfc
- contentbox.model.content.BaseContentfkcolumn
- FK_categoryIDany numberOfEntries
formula
- 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.contentID
and content.isPublished = 1required
- falseserializable
- truedefault
- any numberOfPages
formula
- 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.contentID
and content.isPublished = 1required
- falseserializable
- truedefault
- any slug
index
- idx_slugunique
- trueserializable
- truerequired
- falsenotnull
- truelength
- 200default
- Method Detail |
---|
public void ADDCONTENT(BaseContent content)
content
public any GETCATEGORY()
public any GETCATEGORYID()
public array GETCONTENT()
public any GETNUMBEROFENTRIES()
public any GETNUMBEROFPAGES()
public any GETSLUG()
public boolean HASCONTENT([BaseContent content])
content
public boolean REMOVECONTENT(BaseContent content)
content
public Category SETCATEGORY(any category)
category
public Category SETCONTENT(array content)
content
public Category SETNUMBEROFENTRIES(any numberOfEntries)
numberOfEntries
public Category SETNUMBEROFPAGES(any numberOfPages)
numberOfPages
public Category SETSLUG(any slug)
slug
public any getMemento()
public boolean isLoaded()
public Category removeAllContent()
|
ContentBox Core API 1.6.0 | ||||
FRAMES |