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