PHP 클래스 TbBaseMenu

상속: extends CMenu
파일 보기 프로젝트 열기: yinhe/yincart 1 사용 예제들

공개 메소드들

메소드 설명
getDividerCssClass ( ) : string ### .getDividerCssClass()
getDropdownCssClass ( ) : string ### .getDropdownCssClass()
isVertical ( ) : boolean ### .isVertical()

보호된 메소드들

메소드 설명
normalizeItems ( array $items, string $route, boolean &$active ) : array ### .normalizeItems()
renderMenu ( array $items ) ### .renderMenu()
renderMenuItem ( array $item ) : string ### .renderMenuItem()

메소드 상세

getDividerCssClass() 추상적인 공개 메소드

Returns the divider css class.
abstract public getDividerCssClass ( ) : string
리턴 string the class name

getDropdownCssClass() 추상적인 공개 메소드

Returns the dropdown css class.
abstract public getDropdownCssClass ( ) : string
리턴 string the class name

isVertical() 추상적인 공개 메소드

Returns whether this is a vertical menu.
abstract public isVertical ( ) : boolean
리턴 boolean the result

normalizeItems() 보호된 메소드

Normalizes the {@link items} property so that the 'active' state is properly identified for every menu item.
protected normalizeItems ( array $items, string $route, boolean &$active ) : array
$items array the items to be normalized.
$route string the route of the current request.
$active boolean whether there is an active child menu item.
리턴 array the normalized menu items

renderMenu() 보호된 메소드

Renders the menu items.
protected renderMenu ( array $items )
$items array menu items. Each menu item will be an array with at least two elements: 'label' and 'active'. It may have three other optional elements: 'items', 'linkOptions' and 'itemOptions'.

renderMenuItem() 보호된 메소드

Renders the content of a menu item. Note that the container and the sub-menus are not rendered here.
protected renderMenuItem ( array $item ) : string
$item array the menu item to be rendered. Please see {@link items} on what data might be in the item.
리턴 string the rendered item