API Docs for: 0.8.0
Show:

AdminNavigation Class

Module: Admin
Parent Module: Services

Provides function to construct the structure needed to display the navigation in the Admin section of the application.

Item Index

Properties

Methods

add

(
  • node
  • [site='global']
)
Boolean static

Adds a new top level node

Parameters:

  • node Object
  • [site='global'] String optional

Returns:

Boolean:

addChildToSite

(
  • parentId
  • node
  • site
)
Boolean static

Adds a new child node to an existing top level node

Parameters:

  • parentId String
  • node Object
  • site String
    • site unique id

Returns:

Boolean:

addToSite

(
  • node
  • site
)
Boolean static

Adds a new top level node

Parameters:

  • node Object
  • site String

Returns:

Boolean:

buildNavigation

() Array private static

Returns:

Array:

get

(
  • session
  • activeMenuItems
  • ls
)
Object static

Retrive the admin navigation hierarchy

Parameters:

  • session Object
  • activeMenuItems Array

    Array of nav item names that are active

  • ls Object

    Localization service

Returns:

Object:

Admin navigation

getAdditions

() Array private static

Returns:

Array:

getAdditionsInScope

(
  • additions
  • site
)
private

Parameters:

  • additions Object
  • site String

getChildrenAdditions

() Object private static

Returns:

Object:

isDefaultNode

(
  • id
)
Boolean private static

Parameters:

  • id String

Returns:

Boolean:

isDuplicate

(
  • id
  • navigation
)
Boolean private static

Parameters:

  • id String
  • navigation Array

Returns:

Boolean:

localizeNavigation

(
  • navigation
  • ls
)
Array private static

Parameters:

Returns:

Array:

remove

(
  • id
  • [site='global']
)
Boolean static

Remove a navigation node

Parameters:

  • id Object
  • [site='global'] String optional

Returns:

Boolean:

removeFromSite

(
  • id
  • site
)
Boolean static

Remove a navigation node

Parameters:

  • id Object
  • site String

Returns:

Boolean:

removeUnauthorized

(
  • session
  • adminNavigation
  • activeItems
)
Array static

Parameters:

  • session Object
  • adminNavigation Array
  • activeItems Array

Returns:

Array:

Properties

additions

Array private static

childrenAdditions

Object private static

CONTENT_NAV

Unknown private static

MULTISITE_NAV

Unknown private static