PHP 클래스 App\Source\Composite\Menu

상속: extends AMenu
파일 보기 프로젝트 열기: andrey900/slimcms

공개 메소드들

메소드 설명
add ( App\Source\Composite\Interfaces\IMenuComposite $menuItem )
attributes ( $arAttr = null, $value = null ) : string | Item Set or get items's attributes
clearFilter ( )
extractAttr ( array $options ) : array Extract valid html attributes from user's options
filter ( callable $callback ) : Menu Filter menu items by user callback
getAllItems ( )
getChild ( integer $id = false )
getParent ( $id )
getUrl ( array | string $options ) : string Return url
length ( ) : integer Count number of items in the menu
meta ( $arData = null, $value = null ) : string | MenuItem Set or get items's meta data
remove ( $id )
sortByMeta ( $metaName )

메소드 상세

add() 공개 메소드

public add ( App\Source\Composite\Interfaces\IMenuComposite $menuItem )
$menuItem App\Source\Composite\Interfaces\IMenuComposite

attributes() 공개 메소드

Set or get items's attributes
public attributes ( $arAttr = null, $value = null ) : string | Item
리턴 string | Item

clearFilter() 공개 메소드

public clearFilter ( )

extractAttr() 공개 메소드

Extract valid html attributes from user's options
public extractAttr ( array $options ) : array
$options array
리턴 array

filter() 공개 메소드

Filter menu items by user callback
public filter ( callable $callback ) : Menu
$callback callable
리턴 Menu

getAllItems() 공개 메소드

public getAllItems ( )

getChild() 공개 메소드

public getChild ( integer $id = false )
$id integer

getParent() 공개 메소드

public getParent ( $id )
$id

getUrl() 공개 메소드

Return url
public getUrl ( array | string $options ) : string
$options array | string
리턴 string

length() 공개 메소드

Count number of items in the menu
public length ( ) : integer
리턴 integer

meta() 공개 메소드

Set or get items's meta data
public meta ( $arData = null, $value = null ) : string | MenuItem
리턴 string | MenuItem

remove() 공개 메소드

public remove ( $id )
$id

sortByMeta() 공개 메소드

public sortByMeta ( $metaName )