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
파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$navigation array The navigation array, will be used to build the navigation

보호된 프로퍼티들

프로퍼티 타입 설명
$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