PHP 클래스 MenuModule, vanilla

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

공개 프로퍼티들

프로퍼티 타입 설명
$CssClass The class attribute to be applied to the root element of the breadcrumb. Default is none.
$HtmlId The html id attribute to be applied to the root element of the menu.vDefault is "Menu".
$Items Menu items.
$Sort Menu group names arranged in the order that the menu should be rendered.

공개 메소드들

메소드 설명
__construct ( string $Sender = '' )
addItem ( $Group, $Text, boolean $Permission = false, string $Attributes = '' )
addLink ( $Group, $Text, $Url, boolean $Permission = false, string $Attributes = '', string $AnchorAttributes = '' )
assetTarget ( ) : string
clearGroups ( )
highlightRoute ( $Route )
removeGroup ( $Group ) Removes an entire group of links, and the group itself, from the menu.
removeLink ( $Group, $Text )
removeLinks ( $Group ) Removes all links from a specific group.
toString ( string $HighlightRoute = '' ) : string

메소드 상세

__construct() 공개 메소드

public __construct ( string $Sender = '' )
$Sender string

addItem() 공개 메소드

public addItem ( $Group, $Text, boolean $Permission = false, string $Attributes = '' )
$Group
$Text
$Permission boolean
$Attributes string

assetTarget() 공개 메소드

public assetTarget ( ) : string
리턴 string

clearGroups() 공개 메소드

public clearGroups ( )

highlightRoute() 공개 메소드

public highlightRoute ( $Route )
$Route

removeGroup() 공개 메소드

Removes an entire group of links, and the group itself, from the menu.
public removeGroup ( $Group )

toString() 공개 메소드

public toString ( string $HighlightRoute = '' ) : string
$HighlightRoute string
리턴 string

프로퍼티 상세

$CssClass 공개적으로 프로퍼티

The class attribute to be applied to the root element of the breadcrumb. Default is none.
public $CssClass

$HtmlId 공개적으로 프로퍼티

The html id attribute to be applied to the root element of the menu.vDefault is "Menu".
public $HtmlId

$Items 공개적으로 프로퍼티

Menu items.
public $Items

$Sort 공개적으로 프로퍼티

Menu group names arranged in the order that the menu should be rendered.
public $Sort