railo-context.Componentcontentbox.model.menu.Menu
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. Core Menu Entity
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
createdDate
|
true
|
false
|
|
any
|
listClass
|
true
|
false
|
|
any
|
listType
|
ul
|
true
|
false
|
any
|
menuClass
|
true
|
false
|
|
any
|
menuID
|
true
|
false
|
|
array
|
menuItems
|
true
|
false
|
|
any
|
menuItemService
|
true
|
false
|
|
any
|
menuService
|
true
|
false
|
|
any
|
ORMService
|
true
|
false
|
|
any
|
slug
|
true
|
false
|
|
any
|
title
|
true
|
false
|
Constructor Summary | |
---|---|
init()
constructor. |
Method Summary | |
---|---|
Menu
|
addMenuItem(any menuItem)
|
private array
|
createMenuItems(array rawData)
Recusive function to build menu items hierarchy from raw data. |
string
|
getCreatedDate()
|
string
|
getListClass()
|
string
|
getListType()
|
struct
|
getMemento()
Get a flat representation of this menu. |
string
|
getMenuClass()
|
string
|
getMenuID()
|
string
|
getMenuItems()
|
string
|
getMenuItemService()
|
string
|
getMenuService()
|
string
|
getORMService()
|
array
|
getRootMenuItems()
Retrieves root menu items (only items with no parents). |
string
|
getSlug()
|
string
|
getTitle()
|
boolean
|
hasMenuItem([any menuItem])
|
boolean
|
isLoaded()
is loaded?. |
Menu
|
populateMenuItems(array rawData)
Creates menu items from raw data object. |
void
|
preInsert()
|
boolean
|
removeMenuItem(any menuItem)
|
any
|
setCreatedDate(any createdDate)
|
any
|
setListClass(any listClass)
|
any
|
setListType(any listType)
|
any
|
setMenuClass(any menuClass)
|
Menu
|
setMenuItems(array menuItems)
|
any
|
setMenuItemService(any menuItemService)
|
any
|
setMenuService(any menuService)
|
any
|
setORMService(any ORMService)
|
any
|
setSlug(any slug)
|
any
|
setTitle(any title)
|
Methods inherited from class railo-context.Component |
---|
None |
Constructor Detail |
---|
constructor
Property Detail |
---|
required
- falsenotnull
- trueormtype
- timestampupdate
- falseserializable
- truerequired
- falseormtype
- stringlength
- 160serializable
- truerequired
- falseormtype
- stringlength
- 20serializable
- truerequired
- falseormtype
- stringlength
- 160serializable
- truerequired
- falsefieldtype
- idgenerator
- nativeserializable
- truesetter
- norequired
- falseinverse
- truefieldtype
- one-to-manycascade
- all-delete-orphansingularname
- menuItemfkcolumn
- FK_menuIDserializable
- truecfc
- contentbox.model.menu.item.BaseMenuItemlazy
- extrarequired
- falseinject
- menuItemService@cbpersistent
- falseserializable
- truerequired
- falseinject
- menuService@cbpersistent
- falseserializable
- truerequired
- falseinject
- coldbox:plugin:ORMServicepersistent
- falseserializable
- trueunique
- truerequired
- falsenotnull
- trueormtype
- stringindex
- idx_menusluglength
- 200serializable
- truerequired
- falsenotnull
- trueormtype
- stringindex
- idx_menutitlelength
- 200serializable
- trueMethod Detail |
---|
menuItem
Recusive function to build menu items hierarchy from raw data
rawData
- The raw data definitions for the menu itemsGet a flat representation of this menu slugCache.hint Cache of slugs to prevent infinite recursions
Retrieves root menu items (only items with no parents)
menuItem
is loaded?
Creates menu items from raw data object
rawData
- The raw data from which to create menu itemsmenuItem
createdDate
listClass
listType
menuClass
menuItems
menuItemService
menuService
ORMService
slug
title