contentbox.model.content

Class Category

railo-context.Component
        extended by contentbox.model.content.Category
Class Attributes:
  • entityname : cbCategory
  •  
  • cacheuse : read-write
  •  
  • table : cb_category
  •  
  • synchronized : false
  •  
  • cachename : cbCategory
  •  
  • accessors : false
  •  
  • persistent : true
  •  

    ContentBox - A Modular Content Platform Copyright 2012 by Luis Majano and Ortus Solutions, Corp 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 default serializable required
    any category


    • notnull = true
    • length = 200
    true false
    any categoryID


    • fieldtype = id
    • generator = native
    • setter = no
    true false
    any categoryService


    • inject = categoryService@cb
    • persistent = false
    true false
    any 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 = 1
    true false
    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 = 1
    true false
    any slug


    • unique = true
    • notnull = true
    • index = idx_slug
    • length = 200
    true false
    Method Summary
    string getCategory()
    string getCategoryID()
    string getCategoryService()
    any getMemento()
         Get memento representation.
    string getNumberOfEntries()
    string getNumberOfPages()
    string getSlug()
    boolean isLoaded()
         is loaded?.
    any setCategory(any category)
    any setCategoryService(any categoryService)
    any setNumberOfEntries(any numberOfEntries)
    any setNumberOfPages(any numberOfPages)
    any setSlug(any slug)
     
    Methods inherited from class railo-context.Component
    None

    Property Detail

    category

    property any category

    Attributes:
    required - false
    notnull - true
    length - 200
    serializable - true

    categoryID

    property any categoryID

    Attributes:
    required - false
    fieldtype - id
    generator - native
    serializable - true
    setter - no

    categoryService

    property any categoryService

    Attributes:
    required - false
    inject - categoryService@cb
    persistent - false
    serializable - true

    numberOfEntries

    property any numberOfEntries

    Attributes:
    required - false
    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 = 1
    serializable - true

    numberOfPages

    property any numberOfPages

    Attributes:
    required - false
    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 = 1
    serializable - true

    slug

    property any slug

    Attributes:
    unique - true
    required - false
    notnull - true
    index - idx_slug
    length - 200
    serializable - true

    Method Detail

    getCategory

    public string getCategory()


    getCategoryID

    public string getCategoryID()


    getCategoryService

    public string getCategoryService()


    getMemento

    public any getMemento()

    Get memento representation


    getNumberOfEntries

    public string getNumberOfEntries()


    getNumberOfPages

    public string getNumberOfPages()


    getSlug

    public string getSlug()


    isLoaded

    public boolean isLoaded()

    is loaded?


    setCategory

    public any setCategory(any category)

    Parameters:
    category

    setCategoryService

    public any setCategoryService(any categoryService)

    Parameters:
    categoryService

    setNumberOfEntries

    public any setNumberOfEntries(any numberOfEntries)

    Parameters:
    numberOfEntries

    setNumberOfPages

    public any setNumberOfPages(any numberOfPages)

    Parameters:
    numberOfPages

    setSlug

    public any setSlug(any slug)

    Parameters:
    slug