Class to handle turning raw discussion news feed events into renderable output
| author | kier |
|---|
canViewNewsFeedItem(array $item, mixed $content, array $viewingUser) : boolean
| inherited_from | \XenForo_NewsFeedHandler_Abstract::canViewNewsFeedItem() |
|---|
array
mixed
array
booleancreate(string $class) : \XenForo_NewsFeedHandler_Abstract
The class must exist and be autoloadable or an exception will be thrown.
| inherited_from | \XenForo_NewsFeedHandler_Abstract::create() |
|---|
stringClass to load
getContentByIds(array $contentIds, \XenForo_Model_NewsFeed $model, array $viewingUser) : array
Designed to be overridden by child classes using $model->getContentByIds($contentIds) or similar
| inherited_from | \XenForo_NewsFeedHandler_Abstract::getContentByIds() |
|---|
array
\XenForo_Model_NewsFeed
arrayInformation about the viewing user (keys: user_id, permission_combination_id, permissions)
arrayprepareNewsFeedItem(array $item, array $viewingUser) : array
Designed to be overriden by extended classes, while retaining the call to _prepareNewsFeedItem.
| inherited_from | \XenForo_NewsFeedHandler_Abstract::prepareNewsFeedItem() |
|---|
arrayInformation about the viewing user (keys: user_id, permission_combination_id, permissions)
arrayrenderHtml(array $item, \XenForo_View $view) : \XenForo_Template_Public
| inherited_from | \XenForo_NewsFeedHandler_Abstract::renderHtml() |
|---|
array
\XenForo_View
_getContentPrimaryKeynames() : array
array_getDefaultTemplateTitle(string $contentType, string $action) : string
| inherited_from | \XenForo_NewsFeedHandler_Abstract::_getDefaultTemplateTitle() |
|---|
string
string
string_prepareNewsFeedItemAfterAction(array $item, array $content, array $viewingUser) : array
arrayNews feed item
arrayNews feed item content
arrayInformation about the viewing user (keys: user_id, permission_combination_id, permissions)
array_prepareNewsFeedItemBeforeAction(array $item, $content, array $viewingUser) : array
| inherited_from | \XenForo_NewsFeedHandler_Abstract::_prepareNewsFeedItemBeforeAction() |
|---|
arrayInformation about the viewing user (keys: user_id, permission_combination_id, permissions)
array