PHP Class Jarves\Navigation

Show file Open project: jarves/jarves Class Usage Examples

Protected Properties

Property Type Description
$jarves Jarves

Public Methods

Method Description
__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:

Method Details

__construct() public method

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

arrayLevel() public method

public arrayLevel ( $array, $level )

get() public method

public get ( array $options ) : null | Node
$options array
return null | Jarves\Model\Node

getRendered() public method

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
return string

Property Details

$jarves protected property

protected Jarves,jarves $jarves
return Jarves