PHP 클래스 Elgg\Menu\UnpreparedMenu

This also encapsulates parameters to be passed to hooks and views.
파일 보기 프로젝트 열기: elgg/elgg 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $params, array $items ) Constructor
getItems ( ) : ElggMenuIte\ElggMenuItem[] Get the menu items
getName ( ) : string Get the menu name
getParams ( ) : array Get the menu parameters
getSortBy ( ) : string | callable Get the designated (or default) sort strategy
setSortBy ( string | callable $sort_by = 'text' ) : void Set how this menu should be sorted

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( array $params, array $items )
$params array Parameters to be passed to the "prepare" hook and views. Must include value for "name".
$items array Menu items

getItems() 공개 메소드

Get the menu items
public getItems ( ) : ElggMenuIte\ElggMenuItem[]
리턴 ElggMenuIte\ElggMenuItem[]

getName() 공개 메소드

Get the menu name
public getName ( ) : string
리턴 string

getParams() 공개 메소드

Get the menu parameters
public getParams ( ) : array
리턴 array

getSortBy() 공개 메소드

Get the designated (or default) sort strategy
또한 보기: setSortBy
또한 보기: ElggMenuBuilder::sort
public getSortBy ( ) : string | callable
리턴 string | callable

setSortBy() 공개 메소드

Set how this menu should be sorted
또한 보기: ElggMenuBuilder::sort
public setSortBy ( string | callable $sort_by = 'text' ) : void
$sort_by string | callable Sort strategy "text", "name", "priority", or callback
리턴 void