Function CMS_Topic->_arrange_posts_in_tree
Definitions
sources/topics.php
- Arrange posts underneath a post in the thread (not including the post itself).
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$post_id | ?AUTO_LINK | required parameter | N/A | N/A | Reference post in thread (null: root) |
$posts | array | required parameter | N/A | N/A | Posts we will be rendering and have not arranged yet (only some of which will be underneath $post_id) |
$queue | array | required parameter | N/A | N/A | Posts we won't be rendering |
$max_thread_depth | integer | required parameter | N/A | N/A | Maximum depth to render to |
$depth | integer | 0 | N/A | N/A | Current depth in recursion |
Return
- Array structure of rendered posts
- Type: array
- Set: N/A
- Range: N/A