PHP Класс Backend\Core\Engine\Navigation

Автор: Tijs Verkoyen ([email protected])
Автор: Dave Lens ([email protected])
Автор: Davy Hellemans ([email protected])
Автор: Dieter Vanden Eynde ([email protected])
Наследование: extends Backend\Core\Engine\Base\Object
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$navigation array The navigation array, will be used to build the navigation

Защищенные свойства (Protected)

Свойство Тип Описание
$URL Url URL-instance

Открытые методы

Метод Описание
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel )
buildCache ( ) Build navigation cache file.
getCacheDirectory ( ) : string
parse ( TwigTemplate $template )

Приватные методы

Метод Описание
addActiveStateToNavigation ( array $navigation, integer $depth ) : mixed
buildNavigation ( integer $parentId, string &$output, integer $depth = 1 ) Build navigation tree for a parent id.
cleanup ( array $navigation ) : array Clean the navigation
compareURL ( array $value, integer $key, array $keys = [] ) : mixed Try to determine the selected state
getNavigationUrl ( integer $id ) : string Get the url of a navigation item.
getSelectedKeys ( ) : array Get the selected keys based on the current module/actions

Описание методов

__construct() публичный Метод

public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel )
$kernel Symfony\Component\HttpKernel\KernelInterface

buildCache() публичный Метод

Build navigation cache file.
public buildCache ( )

getCacheDirectory() публичный статический Метод

public static getCacheDirectory ( ) : string
Результат string

parse() публичный Метод

public parse ( TwigTemplate $template )
$template TwigTemplate

Описание свойств

$URL защищенное свойство

URL-instance
protected Url,Backend\Core\Engine $URL
Результат Url

$navigation публичное свойство

The navigation array, will be used to build the navigation
public array $navigation
Результат array