The constructor method.
Dal_Statistics_Tracker
Dal_Statistics_Tracker
()
A method to delete old (ie. summarised) raw data.
integer
deleteOldData
(
Date $summarisedTo)
-
Date
$summarisedTo: The date/time up to which data have been summarised (i.e. data up to and including this date (minus any compact_stats_grace window) will be deleted).
Redefinition of:
- Dal_Statistics_Common::deleteOldData()
- A method to delete old (ie. summarised) raw data.
Redefined in descendants as:
A method to find the last time that maintenance statistics was run.
Date
getMaintenanceStatisticsLastRunInfo
(
integer $type, [
Date $now =
null])
-
integer
$type: The update type that occurred - that is, 0 if the update was done on the basis of the operation interval, or 1 if the update was done on the basis of the hour.
-
Date
$now: An optional Date, used to specify the "current time", and to limit the method to only look for past maintenance statistics runs before this date. Normally only used to assist with re-generation of statistics in the event of faulty raw tables.
Redefinition of:
- Dal_Statistics_Common::getMaintenanceStatisticsLastRunInfo()
- A method to find the last time that maintenance statistics was run.
Redefined in descendants as:
A method to store the details logging a maintenance statistics run.
void
logCompletion
(
Date $start,
Date $end,
integer $type,
Date $updateTo,
string &$report)
-
Date
$start: The time that the maintenance statistics run started.
-
Date
$end: The time that the maintenance statistics run ended.
-
integer
$type: The type of run:
- - The update was based on the operation interval;
- - The update was based on the hour;
- - The update was based on both the operation interval and hour.
-
Date
$updateTo: The end of the operation interval/hour that has been updated.
-
string
$report: The maintenance statistics run report.
Redefinition of:
- Dal_Statistics_Common::logCompletion()
- A method to store the details logging a maintenance statistics run.
The singleton method to create or return a single instance of the class.
Redefinition of:
- Dal_Statistics_Common::singleton()
- The singleton method to create or return a single instance of the class.
Redefined in descendants as:
A private function to do the job of Dal_Statistics_Tracker::getMaintenanceStatisticsLastRunInfo(), but with an extra parameter to specify the raw table to look in, in the case of maintenance statistics not having been run before.
Date
_getMaintenanceStatisticsLastRunInfo
(
integer $type,
string $rawTable, [
Date $now =
null])
-
integer
$type: The update type that occurred - that is, 0 if the update was done on the basis of the operation interval, or 1 if the update was done on the basis of the hour.
-
string
$rawTable: The raw table to use in case of no previous run.
-
Date
$now: An optional Date, used to specify the "current time", and to limit the method to only look for past maintenance statistics runs before this date. Normally only used to assist with re-generation of statistics in the event of faulty raw tables.
Inherited Methods
Inherited From Dal_Statistics_Common
Dal_Statistics_Common::Dal_Statistics_Common()
Dal_Statistics_Common::deleteOldData()
Dal_Statistics_Common::getMaintenanceStatisticsLastRunInfo()
Dal_Statistics_Common::logCompletion()
Dal_Statistics_Common::saveIntermediate()
Dal_Statistics_Common::saveSummary()
Dal_Statistics_Common::singleton()
Dal_Statistics_Common::summariseClicks()
Dal_Statistics_Common::summariseConnections()
Dal_Statistics_Common::summariseImpressions()
Inherited From Dal
Dal::Dal()
Dal::affectedRows()
Dal::execute()
Dal::executeIgnoreErrors()
Dal::fetchResultAsArray()
Dal::numberOfRows()
Dal::singleton()