Class to handle preparing nodes of a specified type for display.
| package | XenForo_Nodes |
|---|
getExtraDataForNodes(array $nodeIds) : array
array
arrayFormat: [node id] => infogetNodeItemCounts(array $node) : array
array
arrayKeys: discussions, messagesgetPushableDataForNode(array $node, array $childPushable, array $permissions) : array
arrayCurrent node info
arrayList of pushable data from all child nodes: [node id] => pushable data
arrayPermissions for this node
arrayList of pushable data (key-value pairs)isNodeViewable(array $node, array $nodePermissions) : boolean
arrayNode info
arrayPermissions for this node
booleanprepareNode(array $node) : array
arrayUnprepared data
arrayPrepared 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.
arrayInformation about this node
arrayPemissions for this node
arrayList of rendered children, [node id] => rendered output
integerThe 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.
arrayInfo about the current node
arrayList of pushable data for child nodes ([node id] => info)
arrayKey-value pairs of pushable data