PHP 클래스 Neos\Neos\TypoScript\AbstractMenuImplementation

Main Options: - renderHiddenInIndex: if TRUE, hidden-in-index nodes will be shown in the menu. FALSE by default.
상속: extends Neos\Fusion\TypoScriptObjects\TemplateImplementation
파일 보기 프로젝트 열기: neos/neos-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$currentLevel integer Internal cache for the currentLevel tsValue.
$currentNode Neos\ContentRepository\Domain\Model\NodeInterface
$currentNodeRootline array Rootline of all nodes from the current node to the site root node, keys are depth of nodes.
$items array An internal cache for the built menu items array.
$renderHiddenInIndex boolean Internal cache for the renderHiddenInIndex property.

공개 메소드들

메소드 설명
getItems ( ) : array Main API method which sends the to-be-rendered data to Fluid
getRenderHiddenInIndex ( ) : boolean Should nodes that have "hiddenInIndex" set still be visible in this menu.

보호된 메소드들

메소드 설명
buildItems ( ) : array Builds the array of menu items containing those items which match the configuration set for this Menu object.
calculateItemState ( Neos\ContentRepository\Domain\Model\NodeInterface $node = null ) : string Helper Method: Calculates the state of the given menu item (node) depending on the currentNode.
getCurrentNodeRootline ( ) : array Get the rootline from the current node up to the site node.
getNodeLevelInSite ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : integer Node Level relative to site root node.
isNodeHidden ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : boolean Return TRUE/FALSE if the node is currently hidden or not in the menu; taking the "renderHiddenInIndex" configuration of the Menu TypoScript object into account.

메소드 상세

buildItems() 추상적인 보호된 메소드

Must be overridden in subclasses.
abstract protected buildItems ( ) : array
리턴 array An array of menu items and further information

calculateItemState() 보호된 메소드

This method needs to be called inside buildItems() in the subclasses.
protected calculateItemState ( Neos\ContentRepository\Domain\Model\NodeInterface $node = null ) : string
$node Neos\ContentRepository\Domain\Model\NodeInterface
리턴 string

getCurrentNodeRootline() 보호된 메소드

Get the rootline from the current node up to the site node.
protected getCurrentNodeRootline ( ) : array
리턴 array

getItems() 공개 메소드

Main API method which sends the to-be-rendered data to Fluid
public getItems ( ) : array
리턴 array

getNodeLevelInSite() 보호된 메소드

0 = Site root node
protected getNodeLevelInSite ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : integer
$node Neos\ContentRepository\Domain\Model\NodeInterface
리턴 integer

getRenderHiddenInIndex() 공개 메소드

Should nodes that have "hiddenInIndex" set still be visible in this menu.
public getRenderHiddenInIndex ( ) : boolean
리턴 boolean

isNodeHidden() 보호된 메소드

This method needs to be called inside buildItems() in the subclasses.
protected isNodeHidden ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeInterface
리턴 boolean

프로퍼티 상세

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

Internal cache for the currentLevel tsValue.
protected int $currentLevel
리턴 integer

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

protected NodeInterface,Neos\ContentRepository\Domain\Model $currentNode
리턴 Neos\ContentRepository\Domain\Model\NodeInterface

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

Rootline of all nodes from the current node to the site root node, keys are depth of nodes.
protected array $currentNodeRootline
리턴 array

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

An internal cache for the built menu items array.
protected array $items
리턴 array

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

Internal cache for the renderHiddenInIndex property.
protected bool $renderHiddenInIndex
리턴 boolean