Class Maintenance_Statistics_AdServer

Description

A class for summarising raw data into the various statistics that Max needs for the AdServer module.

Located in /maintenance/libraries/max/Maintenance/StatisticsAdServer.php (line 42)

Maintenance_Statistics_Common
   |
   --Maintenance_Statistics_AdServer
Method Summary
 Maintenance_Statistics_AdServer Maintenance_Statistics_AdServer ([Date $now = null], [Date $lastUpdated = null])
 void summariseFinal ()
 void _saveIntermediateSummaries (Date $start, Date $end)
 void _summariseIntermediateClicks (Date $start, Date $end)
 void _summariseIntermediateRequests (Date $start, Date $end)
Variables
Methods
Constructor Maintenance_Statistics_AdServer (line 56)

The constructor method.

Maintenance_Statistics_AdServer Maintenance_Statistics_AdServer ([Date $now = null], [Date $lastUpdated = null])
  • Date $now: Optional Date representing the current date/time. Normally just used for testing the class constructor, or for faking the current time in order to re-generate past statistics, in the case of faulty raw data tables.
  • Date $lastUpdated: Optional Date representing the date/time the statistics were last updated. Only used when regenerating statistics.
decrementCampaigns (line 266)

A method to decrement the remaining impressions, clicks and conversions of campaigns based on the saved, summarised data.

void decrementCampaigns ()
summariseFinal (line 236)

A method to summarise intermediate statistics into summary (final) statistics tables, where required.

void summariseFinal ()

Redefinition of:
Maintenance_Statistics_Common::summariseFinal()
A method to summarise intermediate statistics into summary (final) statistics tables, where required.
summariseIntermediate (line 65)

A method to summarise raw data into the intermediate statistics tables.

void summariseIntermediate ()

Redefinition of:
Maintenance_Statistics_Common::summariseIntermediate()
A method to summarise raw data into the intermediate statistics tables.
_saveIntermediateSummaries (line 220)

A private method to save the summarised request/impressions/clicks/connections into the intermediate tables.

  • private:
void _saveIntermediateSummaries (Date $start, Date $end)
  • Date $start: The start date of the data to save.
  • Date $end: The end date of the data to save.
_summariseIntermediateClicks (line 174)

A private method to summarise the ad clicks, ready for insertion into intermediate statistics tables.

  • private:
void _summariseIntermediateClicks (Date $start, Date $end)
  • Date $start: The start date of the data to summarise.
  • Date $end: The end date of the data to summarise.
_summariseIntermediateConnections (line 197)

A private method to summarise the ad connections, ready for insertion into intermediate statistics tables.

  • private:
void _summariseIntermediateConnections (Date $start, Date $end)
  • Date $start: The start date of the data to summarise.
  • Date $end: The end date of the data to summarise.
_summariseIntermediateImpressions (line 151)

A private method to summarise the ad impressions, ready for insertion into intermediate statistics tables.

  • private:
void _summariseIntermediateImpressions (Date $start, Date $end)
  • Date $start: The start date of the data to summarise.
  • Date $end: The end date of the data to summarise.
_summariseIntermediateRequests (line 128)

A private method to summarise the ad requests, ready for insertion into intermediate statistics tables.

  • private:
void _summariseIntermediateRequests (Date $start, Date $end)
  • Date $start: The start date of the data to summarise.
  • Date $end: The end date of the data to summarise.

Inherited Methods

Inherited From Maintenance_Statistics_Common

 Maintenance_Statistics_Common::Maintenance_Statistics_Common()
 Maintenance_Statistics_Common::deleteOldData()
 Maintenance_Statistics_Common::logCompletion()
 Maintenance_Statistics_Common::summariseFinal()
 Maintenance_Statistics_Common::summariseIntermediate()

Documentation generated on Fri, 11 Feb 2005 18:14:09 +0000 by phpDocumentor 1.3.0RC3