Class to help display alerts.

package XenForo_NewsFeed

 Methods

Splits an array into individual chunks of days, keyed by the midnight timestamp of the day specified by each item

dateSplit(array $items, string $dateField) : array
Static

Parameters

$items

array

$dateField

string

Returns

array[$midnight] => $item

Attaches a template object to each record in the incoming alerts array

getTemplates(\XenForo_View $view, array $alerts, array $handlers) : array
Static

Parameters

$alerts

$handlers

array

Returns

array$newsFeed

Private constructor.

__construct() 

Use statically.