Methods

Allows the raw counter data for a stats type to be manipulated before display

getCounterForDisplay(string $statsType, integer $counter) : mixed
Inherited
inherited_from \XenForo_StatsHandler_Abstract::getCounterForDisplay()

Parameters

$statsType

string

$counter

integer

Returns

mixed

Fetches raw stats data from the source tables between the dates provided.

getData(integer $startDate, integer $endDate) : array

Parameters

$startDate

integer

$endDate

integer

Returns

array[subContentType => [ [date => total], [date => total] ] ]

Fetches an array of stats types handled by this class

getStatsTypes() : array

Returns

array[ stats_type => stats type phrase, ... ]

Returns SQL for a basic stats prepared statement.

_getBasicDataQuery(string $tableName, string $dateField, string $extraWhere, string $calcFunction) : string
Inherited
inherited_from \XenForo_StatsHandler_Abstract::_getBasicDataQuery()

Parameters

$tableName

string

Name of table from which to select data

$dateField

string

Name of date field

$extraWhere

string

Extra SQL conditions

$calcFunction

string

SQL calculation function (COUNT(*), SUM(field_name)...)

Returns

string

_getDb()

_getDb() : \Zend_Db_Adapter_Abstract
Inherited
inherited_from \XenForo_StatsHandler_Abstract::_getDb()

Returns

\Zend_Db_Adapter_Abstract

_getStatsModel()

_getStatsModel() : \XenForo_Model_Stats
Inherited
inherited_from \XenForo_StatsHandler_Abstract::_getStatsModel()

Returns