canViewAlert()
create()
getContentByIds()
prepareAlert()
renderHtml()
_getDefaultTemplateTitle()
_getPostModel()
_prepareAlertAfterAction()
_prepareAlertBeforeAction()
$_postModel
Handles alerts of posts.
package | XenForo_Alert |
---|---|
author | kier |
canViewAlert(array $alert, mixed $content, array $viewingUser) : boolean
see | \global\XenForo_AlertHandler_Abstract::canViewAlert() |
---|
array
mixed
array
Information about the viewing user (keys: user_id, permission_combination_id, permissions)
boolean
create(string $class) : \XenForo_AlertHandler_Abstract
The class must exist and be autoloadable or an exception will be thrown.
inherited_from | \XenForo_AlertHandler_Abstract::create() |
---|---|
inherited_from | \XenForo_AlertHandler_DiscussionMessage::create() |
string
Class to load
getContentByIds(array $contentIds, \XenForo_Model_Alert $model, integer $userId, array $viewingUser) : array
Designed to be overridden by child classes using $model->getContentByIds($contentIds) or similar
see | \global\XenForo_AlertHandler_Abstract::getContentByIds() |
---|
array
integer
User ID the alerts are for
array
Information about the viewing user (keys: user_id, permission_combination_id, permissions)
array
prepareAlert(array $item, array $viewingUser) : array
Designed to be overriden by extended classes, while retaining the call to _prepareAlert.
inherited_from | \XenForo_AlertHandler_Abstract::prepareAlert() |
---|---|
inherited_from | \XenForo_AlertHandler_DiscussionMessage::prepareAlert() |
array
Information about the viewing user (keys: user_id, permission_combination_id, permissions)
array
renderHtml(array $item, \XenForo_View $view) : \XenForo_Template_Public
inherited_from | \XenForo_AlertHandler_Abstract::renderHtml() |
---|---|
inherited_from | \XenForo_AlertHandler_DiscussionMessage::renderHtml() |
array
\XenForo_View
_getDefaultTemplateTitle(string $contentType, string $action) : string
inherited_from | \XenForo_AlertHandler_Abstract::_getDefaultTemplateTitle() |
---|---|
inherited_from | \XenForo_AlertHandler_DiscussionMessage::_getDefaultTemplateTitle() |
string
string
string
_prepareAlertAfterAction(array $item, $content, array $viewingUser) : array
inherited_from | \XenForo_AlertHandler_Abstract::_prepareAlertAfterAction() |
---|---|
inherited_from | \XenForo_AlertHandler_DiscussionMessage::_prepareAlertAfterAction() |
array
Information about the viewing user (keys: user_id, permission_combination_id, permissions)
array
_prepareAlertBeforeAction(array $item, $content, array $viewingUser) : array
inherited_from | \XenForo_AlertHandler_Abstract::_prepareAlertBeforeAction() |
---|---|
inherited_from | \XenForo_AlertHandler_DiscussionMessage::_prepareAlertBeforeAction() |
array
Information about the viewing user (keys: user_id, permission_combination_id, permissions)
array