Class to handle turning raw post news feed events into renderable output
| package | XenForo_NewsFeed |
|---|---|
| author | kier |
canViewNewsFeedItem(array $item, mixed $content, array $viewingUser) : boolean
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() |
|---|---|
| inherited_from | \XenForo_NewsFeedHandler_DiscussionMessage::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
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() |
|---|---|
| inherited_from | \XenForo_NewsFeedHandler_DiscussionMessage::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() |
|---|---|
| inherited_from | \XenForo_NewsFeedHandler_DiscussionMessage::renderHtml() |
array
\XenForo_View
_getContentPrimaryKeynames() : array
arrayprofile_post_id_getDefaultTemplateTitle(string $contentType, string $action) : string
| inherited_from | \XenForo_NewsFeedHandler_Abstract::_getDefaultTemplateTitle() |
|---|---|
| inherited_from | \XenForo_NewsFeedHandler_DiscussionMessage::_getDefaultTemplateTitle() |
string
string
string_prepareInsert(array $item) : array
array
array$item_prepareNewsFeedItemAfterAction(array $item, array $content, array $viewingUser) : array
| inherited_from | \XenForo_NewsFeedHandler_DiscussionMessage::_prepareNewsFeedItemAfterAction() |
|---|
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() |
|---|---|
| inherited_from | \XenForo_NewsFeedHandler_DiscussionMessage::_prepareNewsFeedItemBeforeAction() |
arrayInformation about the viewing user (keys: user_id, permission_combination_id, permissions)
array$_profilePostModel