PHP Класс Neos\Neos\Service\View\NodeView

NOTE: This class only exists for backwards compatibility with not-yet refactored service end points and service controllers.
Наследование: extends Neos\Flow\Mvc\View\JsonView
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$outputStyle integer
$privilegeManager Neos\Flow\Security\Authorization\PrivilegeManagerInterface
$systemLogger Neos\Flow\Log\SystemLoggerInterface

Открытые методы

Метод Описание
assignChildNodes ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $nodeTypeFilter, integer $outputStyle = self::STYLE_LIST, integer $depth, Neos\ContentRepository\Domain\Model\NodeInterface $untilNode = null ) : void Prepares this view to render a list or tree of child nodes of the given node.
assignFilteredChildNodes ( Neos\ContentRepository\Domain\Model\NodeInterface $node, array $matchedNodes, integer $outputStyle = self::STYLE_LIST ) : void Prepares this view to render a list or tree of filtered nodes.
assignNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, array $propertyNames = ['name', 'path', 'identifier', 'properties', 'nodeType'] ) : void Assigns a node to the NodeView.
assignNodeAndChildNodes ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $nodeTypeFilter = '', integer $depth, Neos\ContentRepository\Domain\Model\NodeInterface $untilNode = null ) : void Prepares this view to render a list or tree of given node including child nodes.
assignNodes ( array $nodes )
collectParentNodeData ( Neos\ContentRepository\Domain\Model\NodeInterface $rootNode, array $nodes ) : array
collectTreeNodeData ( Neos\ContentRepository\Domain\Model\NodeInterface $node, boolean $expand = true, array $children = [], boolean $hasChildNodes = false, boolean $matched = false ) : array

Защищенные методы

Метод Описание
collectChildNodeData ( array &$nodes, Neos\ContentRepository\Domain\Model\NodeInterface $node, string $nodeTypeFilter, integer $depth, Neos\ContentRepository\Domain\Model\NodeInterface $untilNode = null, integer $recursionPointer = 1 ) : void Collect node data and traverse child nodes

Описание методов

assignChildNodes() публичный метод

Prepares this view to render a list or tree of child nodes of the given node.
public assignChildNodes ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $nodeTypeFilter, integer $outputStyle = self::STYLE_LIST, integer $depth, Neos\ContentRepository\Domain\Model\NodeInterface $untilNode = null ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface The node to fetch child nodes of
$nodeTypeFilter string Criteria for filtering the child nodes
$outputStyle integer Either STYLE_TREE or STYLE_list
$depth integer How many levels of childNodes (0 = unlimited)
$untilNode Neos\ContentRepository\Domain\Model\NodeInterface if given, expand all nodes on the rootline towards $untilNode, no matter what is defined with $depth.
Результат void

assignFilteredChildNodes() публичный метод

Prepares this view to render a list or tree of filtered nodes.
public assignFilteredChildNodes ( Neos\ContentRepository\Domain\Model\NodeInterface $node, array $matchedNodes, integer $outputStyle = self::STYLE_LIST ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
$matchedNodes array
$outputStyle integer Either STYLE_TREE or STYLE_list
Результат void

assignNode() публичный метод

Assigns a node to the NodeView.
public assignNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, array $propertyNames = ['name', 'path', 'identifier', 'properties', 'nodeType'] ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface The node to render
$propertyNames array Optional list of property names to include in the JSON output
Результат void

assignNodeAndChildNodes() публичный метод

Prepares this view to render a list or tree of given node including child nodes.
public assignNodeAndChildNodes ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $nodeTypeFilter = '', integer $depth, Neos\ContentRepository\Domain\Model\NodeInterface $untilNode = null ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface The node to fetch child nodes of
$nodeTypeFilter string Criteria for filtering the child nodes
$depth integer How many levels of childNodes (0 = unlimited)
$untilNode Neos\ContentRepository\Domain\Model\NodeInterface if given, expand all nodes on the rootline towards $untilNode, no matter what is defined with $depth.
Результат void

assignNodes() публичный метод

public assignNodes ( array $nodes )
$nodes array

collectChildNodeData() защищенный метод

Collect node data and traverse child nodes
protected collectChildNodeData ( array &$nodes, Neos\ContentRepository\Domain\Model\NodeInterface $node, string $nodeTypeFilter, integer $depth, Neos\ContentRepository\Domain\Model\NodeInterface $untilNode = null, integer $recursionPointer = 1 ) : void
$nodes array
$node Neos\ContentRepository\Domain\Model\NodeInterface
$nodeTypeFilter string
$depth integer levels of child nodes to fetch. 0 = unlimited
$untilNode Neos\ContentRepository\Domain\Model\NodeInterface if given, expand all nodes on the rootline towards $untilNode, no matter what is defined with $depth.
$recursionPointer integer current recursion level
Результат void

collectParentNodeData() публичный метод

public collectParentNodeData ( Neos\ContentRepository\Domain\Model\NodeInterface $rootNode, array $nodes ) : array
$rootNode Neos\ContentRepository\Domain\Model\NodeInterface
$nodes array
Результат array

collectTreeNodeData() публичный метод

public collectTreeNodeData ( Neos\ContentRepository\Domain\Model\NodeInterface $node, boolean $expand = true, array $children = [], boolean $hasChildNodes = false, boolean $matched = false ) : array
$node Neos\ContentRepository\Domain\Model\NodeInterface
$expand boolean
$children array
$hasChildNodes boolean
$matched boolean
Результат array

Описание свойств

$outputStyle защищенное свойство

protected int $outputStyle
Результат integer

$privilegeManager защищенное свойство

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager
Результат Neos\Flow\Security\Authorization\PrivilegeManagerInterface

$systemLogger защищенное свойство

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
Результат Neos\Flow\Log\SystemLoggerInterface