The constructor method.
Dal_Statistics_AdServer
Dal_Statistics_AdServer
()
A method to decrement the remaining impression, click and conversion targets of campaigns based on the saved, summarised data.
void
decrementCampaigns
(
Date $from)
-
Date
$from: The date from which impressions, clicks and conversions should be used to decrement the campaign targets.
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).
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)
-
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.
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.
A method to update the zone impression history table from the intermediate tables.
void
saveHistory
(
Date $from)
-
Date
$from: Update using data after this date.
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.
Redefinition of:
- Dal_Statistics_Common::saveIntermediate()
- A method to update the intermediate tables with summarised data.
A method to update the summary table from the intermediate tables.
void
saveSummary
(
Date $from)
-
Date
$from: Update using data after this date.
Redefinition of:
- Dal_Statistics_Common::saveSummary()
- A method to update the summary table from the intermediate tables.
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 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.
Redefinition of:
- Dal_Statistics_Common::summariseClicks()
- A method for summarising clicks into a temporary table.
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.
Redefinition of:
- Dal_Statistics_Common::summariseConnections()
- A method for summarising connections into a temporary table.
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.
Redefinition of:
- Dal_Statistics_Common::summariseImpressions()
- A method for summarising impressions into a temporary table.
Redefined in descendants as:
A private function to do the job of Dal_Statistics_Search::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)
-
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.
A private method to save the tacker impression/ad impression and tracker impression/ad click connections that have been marked as "latest", and also save the associated tracker impression variable values.
void
_saveConnectionsAndVariableValues
(
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:
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()
Dal_Statistics_Common::_checkIntervalDates()
Inherited From Dal
Dal::Dal()
Dal::execute()
Dal::executeIgnoreErrors()
Dal::singleton()