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 $from)
-
Date
$from: Update using data after this date.
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:
A private method to check that two Dates represent either the start and end of an operation interval, if the operation interval is less than an hour, or the start and end of an hour otherwise.
bool
_checkIntervalDates
(
Date $start,
Date $end)
-
Date
$start: The interval start date.
-
Date
$end: The interval end date.
Inherited Methods
Inherited From Dal
Dal::Dal()
Dal::execute()
Dal::executeIgnoreErrors()
Dal::singleton()