PHP Class Xpressengine\Settings\SettingsMenu

Author: XE Team (developers) ([email protected])
Inheritance: extends Xpressengine\Menu\MenuItem
Show file Open project: xpressengine/xpressengine

Public Properties

Property Type Description
$route Illuminate\Routing\Route

Protected Properties

Property Type Description
$breadCrumbs 이 Item 의 빵조각 정보를 담고 있는 배열 Menu 의 Id 부터 시작
$childItems 하위의 Item 들을 나타내는 배열
$depth 이 Item 이 Tree 상에서 얼마나 깊이 있는지 표시
$parent 상위 Item 인스턴스 이거나 null
$selected 주로 UI 상에서 표현을 위한 선택되어진 유무를 가지고 있음

Public Methods

Method Description
__construct ( array $attributes = [] ) SettingsMenu constructor.
addChild ( Xpressengine\Support\Tree\NodeInterface $item ) : void addChild
getBreadCrumbs ( ) : SettingsMenu[] 선택된 메뉴의 BreadCrumb을 반환한다.
getChildren ( ) : Xpressengine\Support\Tree\NodeInterface[] getChildren
getNodeIdentifier ( ) : string | integer Get the unique identifier for the node
getNodeIdentifierName ( ) : string Get the unique identifier name for the node
getOrderKeyName ( ) : string get order key name
getParent ( ) : mixed Return the parent node or null
getParentNodeIdentifier ( ) : string | integer Get the parent identifier for the node
hasChild ( ) : boolean hasChild
hasVisibleChild ( ) : boolean 메뉴의 자식 메뉴중 visible 상태인 메뉴가 있는지 조회한다.
isSelected ( ) : boolean isSelected
jsonSerialize ( ) : mixed (PHP 5 >= 5.4.0)
Specify data which should be serialized to JSON
link ( ) : Illuminate\Routing\Route | mixed | string 메뉴의 링크를 생성하여 반환한다. 메뉴에 link정보가 있을 경우 link정보를 우선 사용하여 생성한다.
setChildren ( Xpressengine\Support\Tree\NodeInterface[] $children = [] ) : void setChildren
setParent ( Xpressengine\Support\Tree\NodeInterface $item ) : void setParent
setSelected ( boolean $selected, boolean $parentSelect = true ) : void setIsSelected

Private Methods

Method Description
resolveParentId ( array &$attributes ) : void tree구조를 생성하기 위해 관리메뉴의 부모메뉴 아이디를 찾아서 지정한다.

Method Details

__construct() public method

SettingsMenu constructor.
public __construct ( array $attributes = [] )
$attributes array 메뉴정보

addChild() public method

addChild
public addChild ( Xpressengine\Support\Tree\NodeInterface $item ) : void
$item Xpressengine\Support\Tree\NodeInterface one child node - menu item
return void

getBreadCrumbs() public method

선택된 메뉴의 BreadCrumb을 반환한다.
public getBreadCrumbs ( ) : SettingsMenu[]
return SettingsMenu[]

getChildren() public method

getChildren
public getChildren ( ) : Xpressengine\Support\Tree\NodeInterface[]
return Xpressengine\Support\Tree\NodeInterface[]

getNodeIdentifier() public method

Get the unique identifier for the node
public getNodeIdentifier ( ) : string | integer
return string | integer

getNodeIdentifierName() public method

Get the unique identifier name for the node
public getNodeIdentifierName ( ) : string
return string

getOrderKeyName() public method

get order key name
public getOrderKeyName ( ) : string
return string

getParent() public method

Return the parent node or null
public getParent ( ) : mixed
return mixed

getParentNodeIdentifier() public method

Get the parent identifier for the node

hasChild() public method

hasChild
public hasChild ( ) : boolean
return boolean

hasVisibleChild() public method

메뉴의 자식 메뉴중 visible 상태인 메뉴가 있는지 조회한다.
public hasVisibleChild ( ) : boolean
return boolean

isSelected() public method

isSelected
public isSelected ( ) : boolean
return boolean

jsonSerialize() public method

(PHP 5 >= 5.4.0)
Specify data which should be serialized to JSON
public jsonSerialize ( ) : mixed
return mixed data which can be serialized by json_encode, which is a value of any type other than a resource.

setChildren() public method

setChildren
public setChildren ( Xpressengine\Support\Tree\NodeInterface[] $children = [] ) : void
$children Xpressengine\Support\Tree\NodeInterface[] set array of menuItems
return void

setParent() public method

setParent
public setParent ( Xpressengine\Support\Tree\NodeInterface $item ) : void
$item Xpressengine\Support\Tree\NodeInterface parent menu item
return void

setSelected() public method

setIsSelected
public setSelected ( boolean $selected, boolean $parentSelect = true ) : void
$selected boolean menuItem selected flag
$parentSelect boolean parent menuItem to selected flag
return void

Property Details

$breadCrumbs protected property

이 Item 의 빵조각 정보를 담고 있는 배열 Menu 의 Id 부터 시작
protected $breadCrumbs

$childItems protected property

하위의 Item 들을 나타내는 배열
protected $childItems

$depth protected property

이 Item 이 Tree 상에서 얼마나 깊이 있는지 표시
protected $depth

$parent protected property

상위 Item 인스턴스 이거나 null
protected $parent

$route public property

public Route,Illuminate\Routing $route
return Illuminate\Routing\Route

$selected protected property

주로 UI 상에서 표현을 위한 선택되어진 유무를 가지고 있음
protected $selected