canViewNewsFeedItem()
create()
getContentByIds()
prepareNewsFeedItem()
renderHtml()
_getDefaultTemplateTitle()
_prepareNewsFeedItemAfterAction()
_prepareNewsFeedItemBeforeAction()
Class to handle turning raw news feed events into renderable items
author | kier |
---|
canViewNewsFeedItem(array $item, mixed $content, array $viewingUser) : boolean
array
mixed
array
boolean
create(string $class) : \XenForo_NewsFeedHandler_Abstract
The class must exist and be autoloadable or an exception will be thrown.
string
Class 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
array
\XenForo_Model_NewsFeed
array
Information about the viewing user (keys: user_id, permission_combination_id, permissions)
array
prepareNewsFeedItem(array $item, array $viewingUser) : array
Designed to be overriden by extended classes, while retaining the call to _prepareNewsFeedItem.
array
Information about the viewing user (keys: user_id, permission_combination_id, permissions)
array
renderHtml(array $item, \XenForo_View $view) : \XenForo_Template_Public
_getDefaultTemplateTitle(string $contentType, string $action) : string
string
string
string
_prepareNewsFeedItemAfterAction(array $item, $content, array $viewingUser) : array
array
Information about the viewing user (keys: user_id, permission_combination_id, permissions)
array
_prepareNewsFeedItemBeforeAction(array $item, $content, array $viewingUser) : array
array
Information about the viewing user (keys: user_id, permission_combination_id, permissions)
array