__construct()
assertForumValidAndViewable()
assertPostValidAndViewable()
assertThreadValidAndViewable()
getForumOrError()
getNodeBreadCrumbs()
getPostOrError()
getThreadOrError()
_constructSetup()
$_controller
$_visitor
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
integer
string
ID or node name of forum
array
Extra data to fetch wtih the forum
array
Forum infoassertPostValidAndViewable(integer $postId, array $postFetchOptions, array $threadFetchOptions, array $forumFetchOptions) : array
integer
array
Extra data to fetch with the post
array
Extra data to fetch with the thread
array
Extra data to fetch wtih the forum
array
Format: [0] => post info, [1] => thread info, [2] => forum infoassertThreadValidAndViewable(integer $threadId, array $threadFetchOptions, array $forumFetchOptions) : array
integer
array
Extra data to fetch with the thread
array
Extra data to fetch wtih the forum
array
Format: [0] => thread info, [1] => forum infogetForumOrError(integer | string $forumIdOrName, array $fetchOptions) : array
integer
string
Forum ID or node name
array
Options that control the data fetched with the forum
array
getNodeBreadCrumbs(array $forum, boolean $includeSelf) : \unknown_type
array
Information about the node
boolean
Whether to include this node in the bread crumbs
\unknown_type
getPostOrError(integer $postId, array $fetchOptions) : array
integer
array
Options that control the data fetched with the post
array
getThreadOrError(integer $threadId, array $fetchOptions) : array
integer
array
Options that control the data fetched with the thread
array
_constructSetup()
$_controller : \XenForo_Controller
inherited_from | \XenForo_ControllerHelper_Abstract::$$_controller |
---|