PHP 클래스 Neos\Neos\TypoScript\MenuImplementation

상속: extends AbstractMenuImplementation
파일 보기 프로젝트 열기: neos/neos-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$lastLevel integer Internal cache for the lastLevel value.
$maximumLevels integer Internal cache for the maximumLevels tsValue.
$startingPoint Neos\ContentRepository\Domain\Model\NodeInterface Internal cache for the startingPoint tsValue.

공개 메소드들

메소드 설명
getEntryLevel ( ) : integer The last navigation level which should be rendered.
getFilter ( ) : string NodeType filter for nodes displayed in menu
getItemCollection ( ) : array
getLastLevel ( ) : integer Return evaluated lastLevel value.
getMaximumLevels ( ) : integer Maximum number of levels which should be rendered in this menu.
getStartingPoint ( ) : Neos\ContentRepository\Domain\Model\NodeInterface

보호된 메소드들

메소드 설명
buildItems ( ) : array Builds the array of menu items containing those items which match the configuration set for this Menu object.
buildMenuItemRecursive ( Neos\ContentRepository\Domain\Model\NodeInterface $currentNode ) : array Prepare the menu item with state and sub items if this isn't the last menu level.
buildMenuLevelRecursive ( array $menuLevelCollection ) : array
calculateNodeDepthFromRelativeLevel ( integer $relativeLevel, Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode ) : integer Calculates an absolute depth value for a relative level given.
findMenuStartingPoint ( ) : Neos\ContentRepository\Domain\Model\NodeInterface Find the starting point for this menu. depending on given startingPoint If startingPoint is given, this is taken as starting point for this menu level, as a fallback the TypoScript context variable node is used.
findParentNodeInBreadcrumbPathByLevel ( integer $givenSiteLevel, Neos\ContentRepository\Domain\Model\NodeInterface $startingPoint ) : Neos\ContentRepository\Domain\Model\NodeInterface Finds the node in the current breadcrumb path between current site node and current node whose level matches the specified entry level.
isOnLastLevelOfMenu ( Neos\ContentRepository\Domain\Model\NodeInterface $menuItemNode ) : boolean Checks if the given menuItem is on the last level for this menu, either defined by maximumLevels or lastLevels.

메소드 상세

buildItems() 보호된 메소드

Builds the array of menu items containing those items which match the configuration set for this Menu object.
protected buildItems ( ) : array
리턴 array An array of menu items and further information

buildMenuItemRecursive() 보호된 메소드

Prepare the menu item with state and sub items if this isn't the last menu level.
protected buildMenuItemRecursive ( Neos\ContentRepository\Domain\Model\NodeInterface $currentNode ) : array
$currentNode Neos\ContentRepository\Domain\Model\NodeInterface
리턴 array

buildMenuLevelRecursive() 보호된 메소드

protected buildMenuLevelRecursive ( array $menuLevelCollection ) : array
$menuLevelCollection array
리턴 array

calculateNodeDepthFromRelativeLevel() 보호된 메소드

Calculates an absolute depth value for a relative level given.
protected calculateNodeDepthFromRelativeLevel ( integer $relativeLevel, Neos\ContentRepository\Domain\Model\NodeInterface $referenceNode ) : integer
$relativeLevel integer
$referenceNode Neos\ContentRepository\Domain\Model\NodeInterface
리턴 integer

findMenuStartingPoint() 보호된 메소드

If entryLevel is configured this will be taken into account as well.
protected findMenuStartingPoint ( ) : Neos\ContentRepository\Domain\Model\NodeInterface
리턴 Neos\ContentRepository\Domain\Model\NodeInterface

findParentNodeInBreadcrumbPathByLevel() 보호된 메소드

Finds the node in the current breadcrumb path between current site node and current node whose level matches the specified entry level.
protected findParentNodeInBreadcrumbPathByLevel ( integer $givenSiteLevel, Neos\ContentRepository\Domain\Model\NodeInterface $startingPoint ) : Neos\ContentRepository\Domain\Model\NodeInterface
$givenSiteLevel integer The site level child nodes of the to be found parent node should have. See $this->entryLevel for possible values.
$startingPoint Neos\ContentRepository\Domain\Model\NodeInterface
리턴 Neos\ContentRepository\Domain\Model\NodeInterface The parent node of the node at the specified level or NULL if none was found

getEntryLevel() 공개 메소드

1 = first level of the site 2 = second level of the site ... 0 = same level as the current page -1 = one level above the current page -2 = two levels above the current page ...
public getEntryLevel ( ) : integer
리턴 integer

getFilter() 공개 메소드

NodeType filter for nodes displayed in menu
public getFilter ( ) : string
리턴 string

getItemCollection() 공개 메소드

public getItemCollection ( ) : array
리턴 array

getLastLevel() 공개 메소드

Return evaluated lastLevel value.
public getLastLevel ( ) : integer
리턴 integer

getMaximumLevels() 공개 메소드

Maximum number of levels which should be rendered in this menu.
public getMaximumLevels ( ) : integer
리턴 integer

getStartingPoint() 공개 메소드

public getStartingPoint ( ) : Neos\ContentRepository\Domain\Model\NodeInterface
리턴 Neos\ContentRepository\Domain\Model\NodeInterface

isOnLastLevelOfMenu() 보호된 메소드

Checks if the given menuItem is on the last level for this menu, either defined by maximumLevels or lastLevels.
protected isOnLastLevelOfMenu ( Neos\ContentRepository\Domain\Model\NodeInterface $menuItemNode ) : boolean
$menuItemNode Neos\ContentRepository\Domain\Model\NodeInterface
리턴 boolean

프로퍼티 상세

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

Internal cache for the lastLevel value.
protected int $lastLevel
리턴 integer

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

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

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

Internal cache for the startingPoint tsValue.
protected NodeInterface,Neos\ContentRepository\Domain\Model $startingPoint
리턴 Neos\ContentRepository\Domain\Model\NodeInterface