contentbox.model.menu.item

Class SubMenuItem

railo-context.Component
        extended by contentbox.model.menu.item.BaseMenuItem
            extended by contentbox.model.menu.item.SubMenuItem
Class Attributes:
  • discriminatorvalue : SubMenu
  •  
  • entityname : cbSubMenuItem
  •  
  • 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 Submenu-based Menu Item

    Property Summary
    type property default serializable required
    any menuSlug


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


    • inject = contentbox.model.menu.providers.SubMenuProvider
    • persistent = false
    true false
    Method Summary
    boolean canDisplay(struct options='[runtime expression]')
         Available precheck to determine display-ability of menu item.
    struct getMemento()
         Get a flat representation of this menu item.
    string getMenuSlug()
    string getProvider()
    any setMenuSlug(any menuSlug)
    any setProvider(any provider)
     
    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

    menuSlug

    property any menuSlug

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

    provider

    property any provider

    Attributes:
    required - false
    inject - contentbox.model.menu.providers.SubMenuProvider
    persistent - false
    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

    getMemento

    public struct getMemento()

    Get a flat representation of this menu item

    Overrides:
    getMemento in class BaseMenuItem

    getMenuSlug

    public string getMenuSlug()


    getProvider

    public string getProvider()


    setMenuSlug

    public any setMenuSlug(any menuSlug)

    Parameters:
    menuSlug

    setProvider

    public any setProvider(any provider)

    Parameters:
    provider