lucee.Component
contentbox.models.BaseEntityMethods
contentbox.models.BaseEntity
contentbox.models.menu.Menu
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- Core Menu Entity
| Property Summary | ||||
|---|---|---|---|---|
| type | property | default | serializable | required |
date
|
createdDate
|
true
|
false
|
|
any
|
isDeleted
|
false
|
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
|
|
date
|
modifiedDate
|
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
|
getListClass()
|
string
|
getListType()
|
struct
|
getMemento([any excludes=''])
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])
|
Menu
|
populateMenuItems(array rawData)
Creates menu items from raw data object. |
boolean
|
removeMenuItem(any menuItem)
|
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 contentbox.models.BaseEntity |
|---|
| getCreatedDate, getIsDeleted, getModifiedDate, setCreatedDate, setIsDeleted, setModifiedDate |
| Methods inherited from class contentbox.models.BaseEntityMethods |
|---|
| getBaseMemento, getDisplayCreatedDate, getDisplayModifiedDate, isLoaded, preInsert, preUpdate |
| Methods inherited from class lucee.Component |
|---|
| None |
| Constructor Detail |
|---|
constructor
| Property Detail |
|---|
access - publicrequired - falsereturntype - anynotnull - trueormtype - timestampupdate - falseindex - idx_createDateserializable - trueaccess - publicrequired - falsedbdefault - 0returntype - anynotnull - trueormtype - booleanindex - idx_deletedserializable - truesqltype - bitaccess - publicrequired - falsereturntype - anyormtype - stringlength - 160serializable - trueaccess - publicrequired - falsereturntype - anyormtype - stringlength - 20serializable - trueaccess - publicrequired - falsereturntype - anyormtype - stringlength - 160serializable - trueaccess - publicrequired - falsefieldtype - idreturntype - anyparams - { allocationSize = 1, sequence = 'menuID_seq' }generator - nativeserializable - truesetter - noaccess - publicrequired - falseinverse - truefieldtype - one-to-manyreturntype - anycascade - all-delete-orphansingularname - menuItemfkcolumn - FK_menuIDserializable - truecfc - contentbox.models.menu.item.BaseMenuItemlazy - extraaccess - publicrequired - falsereturntype - anyinject - menuItemService@cbpersistent - falseserializable - trueaccess - publicrequired - falsereturntype - anyinject - menuService@cbpersistent - falseserializable - trueaccess - publicrequired - falsereturntype - anynotnull - trueormtype - timestampindex - idx_modifiedDateserializable - trueaccess - publicrequired - falsereturntype - anyinject - entityservicepersistent - falseserializable - trueaccess - publicunique - truerequired - falsereturntype - anynotnull - trueormtype - stringindex - idx_menusluglength - 200serializable - trueaccess - publicrequired - falsereturntype - anynotnull - trueormtype - stringindex - idx_menutitlelength - 200serializable - true| Method Detail |
|---|
menuItemRecusive 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
excludesRetrieves root menu items (only items with no parents)
menuItemCreates menu items from raw data object
rawData - The raw data from which to create menu itemsmenuItemlistClasslistTypemenuClassmenuItemsmenuItemServicemenuServiceORMServiceslugtitle