ajnos
Member
It would be great if the getNodeDataForListDisplay function would have an extraparameter to limit the nodetypes, so we could use this function also for add-ons, without needing to run this, and then to filter for only the needed nodetypes.
PHP:
/**
* Gets all the node data required for a node list display
* (eg, a forum list) from a given point. Returns 3 pieces of data:
* * nodesGrouped - nodes, grouped by parent, with all data integrated
* * nodeHandlers - list of node handlers by node type
* * nodePermissions - the node permissions passed on
*
* @param array|false $parentNode Root node of the tree to display from; false for the entire tree
* @param integer $displayDepth Number of levels of nodes to display below the root, 0 for all
* @param array|null $nodePermissions List of node permissions, [node id] => permissions; if null, get's current visitor's permissions
*
* @return array Empty, or with keys: nodesGrouped, parentNodeId, nodeHandlers, nodePermissions
*/
public function getNodeDataForListDisplay($parentNode, $displayDepth, array $nodePermissions = null)
Upvote
0