PHP 클래스 Frontend\Core\Engine\Breadcrumb

상속: extends Frontend\Core\Engine\Base\Object
파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel )
addElement ( string $title, string $url = null ) Add an element
clear ( integer $key = null ) Clear all (or a specific) elements in the breadcrumb
count ( ) : integer Count number of breadcrumbs that are already added.
getItems ( ) : array Get all elements
parse ( ) Parse the breadcrumb into the template

메소드 상세

__construct() 공개 메소드

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

addElement() 공개 메소드

Add an element
public addElement ( string $title, string $url = null )
$title string The label that will be used in the breadcrumb.
$url string The URL for this item.

clear() 공개 메소드

Clear all (or a specific) elements in the breadcrumb
public clear ( integer $key = null )
$key integer If the key is provided it will be removed from the array, otherwise the whole array will be cleared.

count() 공개 메소드

Count number of breadcrumbs that are already added.
public count ( ) : integer
리턴 integer

getItems() 공개 메소드

Get all elements
public getItems ( ) : array
리턴 array

parse() 공개 메소드

Parse the breadcrumb into the template
public parse ( )