Alert handler for users.
| package | XenForo_Alert |
|---|---|
| author | kier |
canViewAlert(array $alert, mixed $content, array $viewingUser) : boolean
| inherited_from | \XenForo_AlertHandler_Abstract::canViewAlert() |
|---|
array
mixed
arrayInformation about the viewing user (keys: user_id, permission_combination_id, permissions)
booleancreate(string $class) : \XenForo_AlertHandler_Abstract
The class must exist and be autoloadable or an exception will be thrown.
| inherited_from | \XenForo_AlertHandler_Abstract::create() |
|---|
stringClass 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
array
integerUser ID the alerts are for
arrayInformation about the viewing user (keys: user_id, permission_combination_id, permissions)
arrayprepareAlert(array $item, array $viewingUser) : array
Designed to be overriden by extended classes, while retaining the call to _prepareAlert.
| inherited_from | \XenForo_AlertHandler_Abstract::prepareAlert() |
|---|
arrayInformation about the viewing user (keys: user_id, permission_combination_id, permissions)
arrayrenderHtml(array $item, \XenForo_View $view) : \XenForo_Template_Public
| inherited_from | \XenForo_AlertHandler_Abstract::renderHtml() |
|---|
array
\XenForo_View
_getDefaultTemplateTitle(string $contentType, string $action) : string
| inherited_from | \XenForo_AlertHandler_Abstract::_getDefaultTemplateTitle() |
|---|
string
string
string_prepareAlertAfterAction(array $item, $content, array $viewingUser) : array
| inherited_from | \XenForo_AlertHandler_Abstract::_prepareAlertAfterAction() |
|---|
arrayInformation 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() |
|---|
arrayInformation about the viewing user (keys: user_id, permission_combination_id, permissions)
array_prepareTrophy(array $item)