getExtraDataForNodes()
getNodeItemCounts()
getPushableDataForNode()
isNodeViewable()
prepareNode()
renderNodeForTree()
_compileForumLikePushableData()
_getForumLikePushableData()
Class to handle preparing nodes of a specified type for display.
package | XenForo_Nodes |
---|
getExtraDataForNodes(array $nodeIds) : array
array
array
Format: [node id] => infogetNodeItemCounts(array $node) : array
array
array
Keys: discussions, messagesgetPushableDataForNode(array $node, array $childPushable, array $permissions) : array
array
Current node info
array
List of pushable data from all child nodes: [node id] => pushable data
array
Permissions for this node
array
List of pushable data (key-value pairs)isNodeViewable(array $node, array $nodePermissions) : boolean
array
Node info
array
Permissions for this node
boolean
prepareNode(array $node) : array
array
Unprepared data
array
Prepared datarenderNodeForTree(\XenForo_View $view, array $node, array $permissions, array $renderedChildren, integer $level) : string | \XenForo_Template_Abstract
Note that if using a template, it is preferable to not explicitly render the template here, but to return the object instead.
array
Information about this node
array
Pemissions for this node
array
List of rendered children, [node id] => rendered output
integer
The level this node should be rendered at, relative to how it's to be displayed.
_compileForumLikePushableData(array $newPushable, array $childPushable) : array
array
array
array
_getForumLikePushableData(array $node, array $childPushable) : array
Most nodes, including categories and forums, will fall into this category, provided the key names match.
This function does not check any permissions.
array
Info about the current node
array
List of pushable data for child nodes ([node id] => info)
array
Key-value pairs of pushable data