PHP Class Neos\Neos\Service\View\NodeView

NOTE: This class only exists for backwards compatibility with not-yet refactored service end points and service controllers.
Inheritance: extends Neos\Flow\Mvc\View\JsonView
Show file Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$outputStyle integer
$privilegeManager Neos\Flow\Security\Authorization\PrivilegeManagerInterface
$systemLogger Neos\Flow\Log\SystemLoggerInterface

Public Methods

Method Description
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

Protected Methods

Method Description
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

Method Details

assignChildNodes() public method

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.
return void

assignFilteredChildNodes() public method

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
return void

assignNode() public method

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
return void

assignNodeAndChildNodes() public method

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.
return void

assignNodes() public method

public assignNodes ( array $nodes )
$nodes array

collectChildNodeData() protected method

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
return void

collectParentNodeData() public method

public collectParentNodeData ( Neos\ContentRepository\Domain\Model\NodeInterface $rootNode, array $nodes ) : array
$rootNode Neos\ContentRepository\Domain\Model\NodeInterface
$nodes array
return array

collectTreeNodeData() public method

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
return array

Property Details

$outputStyle protected property

protected int $outputStyle
return integer

$privilegeManager protected property

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager
return Neos\Flow\Security\Authorization\PrivilegeManagerInterface

$systemLogger protected property

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
return Neos\Flow\Log\SystemLoggerInterface