Method |
Description |
|
deleteNavigationById ( integer $navId ) : boolean |
Delete a navigation by its ID. |
|
getActiveNodeIdForLevel ( string $handle, integer $segmentLevel = 1 ) : integer | boolean |
Get an active node ID for a specific navigation's level. |
|
getBreadcrumbs ( array $params ) : string |
Get a navigation structure as HTML. |
|
getNav ( string $handle, array $params, array $locale = null ) : string |
Get a navigation structure as HTML. |
|
getNavRaw ( string $handle, array $params, string $locale = null ) : array |
Get a navigation structure without any HTML. |
|
getNavigationByHandle ( string $handle ) : craft\AmNav_NavigationModel | null |
Get a navigation by its handle. |
|
getNavigationById ( integer $navId ) : craft\AmNav_NavigationModel | null |
Get a navigation by its ID. |
|
getNavigationNameByHandle ( string $handle ) : string | null |
Get a navigation name by its handle. |
|
getNavigations ( string $indexBy = null, boolean $indexAllData = false ) : array |
Get all build navigations. |
|
getNavigationsByCommand ( array $variables ) : array |
Get navigations by a given command. |
|
getNodesByNavigationId ( integer $navId, string $locale = null ) : array |
Get all nodes by its navigation ID. |
|
getParentOptions ( array $nodes, mixed $maxLevel = false, boolean $skipFirst = false ) : array |
Get parent options for given nodes. |
|
saveNavigation ( craft\AmNav_NavigationModel $navigation ) : boolean |
Saves a navigation. |
|