PHP Класс Jarves\Navigation

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$jarves Jarves

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

Метод Описание
__construct ( Jarves $jarves, Cacher $cacher, PageStack $pageStack ) Navigation constructor.
arrayLevel ( $array, $level )
get ( array $options ) : null | Node
getRendered ( array $options, Twig_Environment $twig ) : string Options:

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

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

Navigation constructor.
public __construct ( Jarves $jarves, Cacher $cacher, PageStack $pageStack )
$jarves Jarves
$cacher Jarves\Cache\Cacher
$pageStack PageStack

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

public arrayLevel ( $array, $level )

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

public get ( array $options ) : null | Node
$options array
Результат null | Jarves\Model\Node

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

whether the template cache is deactivated. Navigation object is still cached boolean noCache = false whether the pathInfo is used in the cacheKey instead of the currentUrl. Useful when you have in your navigation controller calls that are based on pathInfo like pageStack->getCurrentUrlAffix() boolean pathInfoCache = false Example: getRendered(['noCache' => true]);
public getRendered ( array $options, Twig_Environment $twig ) : string
$options array
$twig Twig_Environment
Результат string

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

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

protected Jarves,jarves $jarves
Результат Jarves