PHP Class Backend\Core\Engine\Navigation

Author: Tijs Verkoyen ([email protected])
Author: Dave Lens ([email protected])
Author: Davy Hellemans ([email protected])
Author: Dieter Vanden Eynde ([email protected])
Inheritance: extends Backend\Core\Engine\Base\Object
Datei anzeigen Open project: forkcms/forkcms Class Usage Examples

Public Properties

Property Type Description
$navigation array The navigation array, will be used to build the navigation

Protected Properties

Property Type Description
$URL Url URL-instance

Public Methods

Method Description
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel )
buildCache ( ) Build navigation cache file.
getCacheDirectory ( ) : string
parse ( TwigTemplate $template )

Private Methods

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

Method Details

__construct() public method

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

buildCache() public method

Build navigation cache file.
public buildCache ( )

getCacheDirectory() public static method

public static getCacheDirectory ( ) : string
return string

parse() public method

public parse ( TwigTemplate $template )
$template TwigTemplate

Property Details

$URL protected_oe property

URL-instance
protected Url,Backend\Core\Engine $URL
return Url

$navigation public_oe property

The navigation array, will be used to build the navigation
public array $navigation
return array