The constructor method.
Dal_Statistics_Common
Dal_Statistics_Common
()
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, unless required by the tracking module, where installed).
Redefined in descendants as:
A method to find the last time that maintenance statistics was run.
Date
getMaintenanceStatisticsLastRunInfo
(
integer $type)
-
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.
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.
Redefined in descendants as:
A method to update the intermediate tables with summarised data.
void
saveIntermediate
(
Date $start,
Date $end)
-
Date
$start: The start date/time to save from.
-
Date
$end: The end date/time to save to.
Redefined in descendants as:
A method to update the summary table from the intermediate tables.
void
saveSummary
(
Date $start,
Date $end)
-
Date
$start: The start date/time to update from.
-
Date
$end: The end date/time to update to.
Redefined in descendants as:
The singleton method to create or return a single instance of the class.
Redefinition of:
- Dal::singleton()
- The singleton method to create or return a single instance of the class.
Redefined in descendants as:
A method for summarising clicks into a temporary table.
integer
summariseClicks
(
Date $start,
Date $end)
-
Date
$start: The start date/time to summarise from.
-
Date
$end: The end date/time to summarise to.
Redefined in descendants as:
A method for summarising connections into a temporary table.
integer
summariseConnections
(
Date $start,
Date $end)
-
Date
$start: The start date/time to summarise from.
-
Date
$end: The end date/time to summarise to.
Redefined in descendants as:
A method for summarising impressions into a temporary table.
integer
summariseImpressions
(
Date $start,
Date $end)
-
Date
$start: The start date/time to summarise from.
-
Date
$end: The end date/time to summarise to.
Redefined in descendants as:
Inherited Methods
Inherited From Dal
Dal::Dal()
Dal::affectedRows()
Dal::execute()
Dal::executeIgnoreErrors()
Dal::fetchResultAsArray()
Dal::numberOfRows()
Dal::singleton()