AdminNavigation Class
Provides function to construct the structure needed to display the navigation in the Admin section of the application.
Item Index
Methods
- add static
- addChildToSite static
- addToSite static
- buildNavigation static
- get static
- getAdditions static
- getAdditionsInScope
- getChildrenAdditions static
- isDefaultNode static
- isDuplicate static
- localizeNavigation static
- remove static
- removeFromSite static
- removeUnauthorized static
Properties
- additions static
- childrenAdditions static
- CONTENT_NAV static
- MULTISITE_NAV static
Methods
add
(
Boolean
static
-
node
-
[site='global']
Adds a new top level node
Parameters:
-
node
Object -
[site='global']
String optional
Returns:
Boolean:
addChildToSite
(
Boolean
static
-
parentId
-
node
-
site
Adds a new child node to an existing top level node
Parameters:
-
parentId
String -
node
Object -
site
String- site unique id
Returns:
Boolean:
addToSite
(
Boolean
static
-
node
-
site
Adds a new top level node
Parameters:
-
node
Object -
site
String
Returns:
Boolean:
get
(
Object
static
-
session
-
activeMenuItems
-
ls
Retrive the admin navigation hierarchy
Parameters:
-
session
Object -
activeMenuItems
ArrayArray of nav item names that are active
-
ls
ObjectLocalization service
Returns:
Object:
Admin navigation
getAdditions
()
Array
private
static
Returns:
Array:
getAdditionsInScope
(
private
-
additions
-
site
Parameters:
-
additions
Object -
site
String
getChildrenAdditions
()
Object
private
static
Returns:
Object:
isDefaultNode
(
Boolean
private
static
-
id
Parameters:
-
id
String
Returns:
Boolean:
isDuplicate
(
Boolean
private
static
-
id
-
navigation
Parameters:
-
id
String -
navigation
Array
Returns:
Boolean:
remove
(
Boolean
static
-
id
-
[site='global']
Remove a navigation node
Parameters:
-
id
Object -
[site='global']
String optional
Returns:
Boolean:
removeFromSite
(
Boolean
static
-
id
-
site
Remove a navigation node
Parameters:
-
id
Object -
site
String
Returns:
Boolean: