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 |
Methods
Assigns a node to the NodeView.
No description
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(NodeInterface $node, array $propertyNames = ['name', 'path', 'identifier', 'properties', 'nodeType'])
Assigns a node to the NodeView.
void
assignNodes(array $nodes)
No description
void
assignChildNodes(NodeInterface $node, string $nodeTypeFilter, int $outputStyle = self::STYLE_LIST, int $depth = 0, NodeInterface $untilNode = null)
Prepares this view to render a list or tree of child nodes of the given node.
void
assignNodeAndChildNodes(NodeInterface $node, string $nodeTypeFilter = '', int $depth = 0, NodeInterface $untilNode = null)
Prepares this view to render a list or tree of given node including child nodes.
void
assignFilteredChildNodes(NodeInterface $node, array $matchedNodes, int $outputStyle = self::STYLE_LIST)
Prepares this view to render a list or tree of filtered nodes.
protected void
collectChildNodeData(array $nodes, NodeInterface $node, string $nodeTypeFilter, int $depth = 0, NodeInterface $untilNode = null, int $recursionPointer = 1)
Collect node data and traverse child nodes
array
collectParentNodeData(NodeInterface $rootNode, array $nodes)
No description
array
collectTreeNodeData(NodeInterface $node, bool $expand = true, array $children = [], bool $hasChildNodes = false, bool $matched = false)
No description