Helper for user profile related pages.

Provides validation methods, amongst other things.

package XenForo_Thread

 Methods

Constructor.

__construct(\XenForo_Controller $controller) 
Inherited

Sets up controller.

inherited_from \XenForo_ControllerHelper_Abstract::__construct()

Parameters

$controller

\XenForo_Controller

assertProfilePostCommentValidAndViewable()

assertProfilePostCommentValidAndViewable($commentId, array $commentFetchOptions, array $profilePostFetchOptions, array $userFetchOptions) 

Parameters

$commentId

$commentFetchOptions

$profilePostFetchOptions

$userFetchOptions

assertProfilePostValidAndViewable()

assertProfilePostValidAndViewable($profilePostId, array $profilePostFetchOptions, array $userFetchOptions) 

Parameters

$profilePostId

$profilePostFetchOptions

$userFetchOptions

assertUserProfileValidAndViewable()

assertUserProfileValidAndViewable($userId, array $fetchOptions) 

Parameters

$userId

$fetchOptions

Gets the specified profile post comment or throws an error.

getProfilePostCommentOrError(integer $commentId, array $fetchOptions) : array

Parameters

$commentId

integer

$fetchOptions

array

Options that control the data fetched with the record

Returns

array

Gets the specified profile post or throws an error.

getProfilePostOrError(integer $profilePostId, array $fetchOptions) : array

Parameters

$profilePostId

integer

$fetchOptions

array

Options that control the data fetched with the record

Returns

array

Gets the specified user or throws an error.

getUserOrError(integer $userId, array $fetchOptions) : array

Parameters

$userId

integer

$fetchOptions

array

Options that control the data fetched with the record

Returns

array

Additional constructor setup behavior.

_constructSetup() 

 Properties

 

$_controller : \XenForo_Controller
Inherited
inherited_from \XenForo_ControllerHelper_Abstract::$$_controller
 

$_visitor : \XenForo_Visitor