NodeView
class NodeView extends JsonView (View source)
An View specialized on single or multiple Nodes in a tree structure
NOTE: This class only exists for backwards compatibility with not-yet refactored service end points and service controllers.
Constants
STYLE_LIST |
|
STYLE_TREE |
|
Properties
protected int | $outputStyle | ||
protected LoggerInterface | $systemLogger | ||
protected PrivilegeManagerInterface | $privilegeManager | ||
protected ContentRepositoryRegistry | $contentRepositoryRegistry |
Methods
Assigns a node to the NodeView.
Prepares this view to render a list or tree of child nodes of the given node.
Prepares this view to render a list or tree of given node including child nodes.
Prepares this view to render a list or tree of filtered nodes.
Collect node data and traverse child nodes
No description
Details
void
assignNode(Node $node, array $propertyNames = ['name', 'path', 'identifier', 'properties', 'nodeType'])
Assigns a node to the NodeView.
void
assignNodes(Nodes $nodes)
No description
void
assignChildNodes(Node $node, string $nodeTypeFilter, int $outputStyle = self::STYLE_LIST, int $depth = 0, Node $untilNode = null)
Prepares this view to render a list or tree of child nodes of the given node.
void
assignNodeAndChildNodes(Node $node, string $nodeTypeFilter = '', int $depth = 0, Node $untilNode = null)
Prepares this view to render a list or tree of given node including child nodes.
void
assignFilteredChildNodes(Node $node, Nodes $matchedNodes, int $outputStyle = self::STYLE_LIST)
Prepares this view to render a list or tree of filtered nodes.
protected void
collectChildNodeData(array $nodes, Node $node, ?string $nodeTypeFilter, int $depth = 0, Node $untilNode = null, int $recursionPointer = 1)
Collect node data and traverse child nodes
array
collectParentNodeData(Node $rootNode, Nodes $nodes)
No description
array
collectTreeNodeData(Node $node, bool $expand = true, array $children = [], bool $hasChildNodes = false, bool $matched = false)
No description