PHP 클래스 Bolt\Menu\MenuEntry

저자: Gawain Lynch ([email protected])
파일 보기 프로젝트 열기: bolt/bolt 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$children MenuEntry[]
$icon string
$label string
$name string
$parent MenuEntry
$permission string
$uri string

공개 메소드들

메소드 설명
__construct ( string $name, string $uri ) Constructor.
add ( MenuEntry $menu ) : MenuEntry Add child menu entry.
children ( ) : MenuEntry[] Return the menu entry's children.
get ( string $name ) : MenuEntry Return a menu entry's named child.
getIcon ( ) : string Return the menu entry's icon.
getLabel ( ) : string Return the menu entry's label.
getName ( ) : string Return the menu entry's internal name.
getPermission ( ) : string Return the menu entry's required view permission.
getUri ( ) : string Return the menu entry's URI relative to Bolt admin's.
setIcon ( string $icon ) : MenuEntry Set the menu entry's icon.
setLabel ( string $label ) : MenuEntry Set the menu entry's label.
setParent ( MenuEntry $parent ) : MenuEntry Set the menu entry's parent object.
setPermission ( string $permission ) : MenuEntry Set the menu entry's required view permission.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $name, string $uri )
$name string
$uri string

add() 공개 메소드

Add child menu entry.
public add ( MenuEntry $menu ) : MenuEntry
$menu MenuEntry
리턴 MenuEntry

children() 공개 메소드

Return the menu entry's children.
public children ( ) : MenuEntry[]
리턴 MenuEntry[]

get() 공개 메소드

Return a menu entry's named child.
public get ( string $name ) : MenuEntry
$name string
리턴 MenuEntry

getIcon() 공개 메소드

Return the menu entry's icon.
public getIcon ( ) : string
리턴 string

getLabel() 공개 메소드

Return the menu entry's label.
public getLabel ( ) : string
리턴 string

getName() 공개 메소드

Return the menu entry's internal name.
public getName ( ) : string
리턴 string

getPermission() 공개 메소드

Return the menu entry's required view permission.
public getPermission ( ) : string
리턴 string

getUri() 공개 메소드

Return the menu entry's URI relative to Bolt admin's.
public getUri ( ) : string
리턴 string

setIcon() 공개 메소드

Set the menu entry's icon.
public setIcon ( string $icon ) : MenuEntry
$icon string
리턴 MenuEntry

setLabel() 공개 메소드

Set the menu entry's label.
public setLabel ( string $label ) : MenuEntry
$label string
리턴 MenuEntry

setParent() 공개 메소드

Set the menu entry's parent object.
public setParent ( MenuEntry $parent ) : MenuEntry
$parent MenuEntry
리턴 MenuEntry

setPermission() 공개 메소드

Set the menu entry's required view permission.
public setPermission ( string $permission ) : MenuEntry
$permission string
리턴 MenuEntry

프로퍼티 상세

$children 보호되어 있는 프로퍼티

protected MenuEntry[],Bolt\Menu $children
리턴 MenuEntry[]

$icon 보호되어 있는 프로퍼티

protected string $icon
리턴 string

$label 보호되어 있는 프로퍼티

protected string $label
리턴 string

$name 보호되어 있는 프로퍼티

protected string $name
리턴 string

$parent 보호되어 있는 프로퍼티

protected MenuEntry,Bolt\Menu $parent
리턴 MenuEntry

$permission 보호되어 있는 프로퍼티

protected string $permission
리턴 string

$uri 보호되어 있는 프로퍼티

protected string $uri
리턴 string