contentbox.model.menu.item

Class ContentMenuItem

railo-context.Component
        extended by contentbox.model.menu.item.BaseMenuItem
            extended by contentbox.model.menu.item.ContentMenuItem
Class Attributes:
  • discriminatorvalue : Content
  •  
  • entityname : cbContentMenuItem
  •  
  • table : cb_menuItem
  •  
  • synchronized : false
  •  
  • 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. A Content-based Menu Item

    Property Summary
    type property default serializable required
    any contentService


    • inject = id:contentService@cb
    • persistent = false
    true false
    any contentSlug


    • notnull = false
    • ormtype = string
    true false
    any provider


    • inject = contentbox.model.menu.providers.ContentProvider
    • persistent = false
    true false
    any target


    • notnull = false
    • ormtype = string
    true false
    any urlClass


    • notnull = false
    • ormtype = string
    true false
    Method Summary
    boolean canDisplay(struct options='[runtime expression]')
         Available precheck to determine display-ability of menu item.
    string getContentService()
    string getContentSlug()
    struct getMemento()
         Get a flat representation of this menu item.
    string getProvider()
    string getTarget()
    string getUrlClass()
    any setContentService(any contentService)
    any setContentSlug(any contentSlug)
    any setProvider(any provider)
    any setTarget(any target)
    any setUrlClass(any urlClass)
     
    Methods inherited from class contentbox.model.menu.item.BaseMenuItem
    addChild, getActive, getAttributesAsString, getChildren, getData, getItemClass, getLabel, getMenu, getMenuItemID, getMenuItemService, getMenuType, getParent, getTitle, hasChild, hasMenu, hasParent, init, removeChild, setActive, setChildren, setData, setItemClass, setLabel, setMenu, setMenuItemService, setMenuType, setParent, setTitle
     
    Methods inherited from class railo-context.Component
    None

    Property Detail

    contentService

    property any contentService

    Attributes:
    required - false
    inject - id:contentService@cb
    persistent - false
    serializable - true

    contentSlug

    property any contentSlug

    Attributes:
    required - false
    notnull - false
    ormtype - string
    serializable - true

    provider

    property any provider

    Attributes:
    required - false
    inject - contentbox.model.menu.providers.ContentProvider
    persistent - false
    serializable - true

    target

    property any target

    Attributes:
    required - false
    notnull - false
    ormtype - string
    serializable - true

    urlClass

    property any urlClass

    Attributes:
    required - false
    notnull - false
    ormtype - string
    serializable - true

    Method Detail

    canDisplay

    public boolean canDisplay(struct options='[runtime expression]')

    Available precheck to determine display-ability of menu item

    Overrides:
    canDisplay in class BaseMenuItem
    Parameters:
    options - Additional arguments to be used in the method

    getContentService

    public string getContentService()


    getContentSlug

    public string getContentSlug()


    getMemento

    public struct getMemento()

    Get a flat representation of this menu item

    Overrides:
    getMemento in class BaseMenuItem

    getProvider

    public string getProvider()


    getTarget

    public string getTarget()


    getUrlClass

    public string getUrlClass()


    setContentService

    public any setContentService(any contentService)

    Parameters:
    contentService

    setContentSlug

    public any setContentSlug(any contentSlug)

    Parameters:
    contentSlug

    setProvider

    public any setProvider(any provider)

    Parameters:
    provider

    setTarget

    public any setTarget(any target)

    Parameters:
    target

    setUrlClass

    public any setUrlClass(any urlClass)

    Parameters:
    urlClass