Helper for forum, thread, and post related pages.
Provides validation methods, amongst other things.
| package | XenForo_Thread |
|---|
__construct(\XenForo_Controller $controller)
Sets up controller.
| inherited_from | \XenForo_ControllerHelper_Abstract::__construct() |
|---|
\XenForo_Controller
assertForumValidAndViewable(integer | string $forumIdOrName, array $fetchOptions) : array
integerstringID or node name of forum
arrayExtra data to fetch wtih the forum
arrayForum infoassertPostValidAndViewable(integer $postId, array $postFetchOptions, array $threadFetchOptions, array $forumFetchOptions) : array
integer
arrayExtra data to fetch with the post
arrayExtra data to fetch with the thread
arrayExtra data to fetch wtih the forum
arrayFormat: [0] => post info, [1] => thread info, [2] => forum infoassertThreadValidAndViewable(integer $threadId, array $threadFetchOptions, array $forumFetchOptions) : array
integer
arrayExtra data to fetch with the thread
arrayExtra data to fetch wtih the forum
arrayFormat: [0] => thread info, [1] => forum infogetForumOrError(integer | string $forumIdOrName, array $fetchOptions) : array
integerstringForum ID or node name
arrayOptions that control the data fetched with the forum
arraygetNodeBreadCrumbs(array $forum, boolean $includeSelf) : \unknown_type
arrayInformation about the node
booleanWhether to include this node in the bread crumbs
\unknown_typegetPostOrError(integer $postId, array $fetchOptions) : array
integer
arrayOptions that control the data fetched with the post
arraygetThreadOrError(integer $threadId, array $fetchOptions) : array
integer
arrayOptions that control the data fetched with the thread
array_constructSetup()
$_controller : \XenForo_Controller
| inherited_from | \XenForo_ControllerHelper_Abstract::$$_controller |
|---|
$_visitor : \XenForo_Visitor