Class Dal_Statistics_AdServer_Split

Description

The data access layer code for summarising raw data into statistics, for

the AdServer module, when split tables are in use

Located in /maintenance/libraries/max/Dal/StatisticsAdServerSplit.php (line 42)

Dal
   |
   --Dal_Statistics_Common
      |
      --Dal_Statistics_AdServer
         |
         --Dal_Statistics_AdServer_Split
Method Summary
 Dal_Statistics_AdServer_Split Dal_Statistics_AdServer_Split ()
 integer deleteOldData (Date $summarisedTo)
 Date getMaintenanceStatisticsLastRunInfo (integer $type, [Date $now = null])
 integer summariseClicks (Date $start, Date $end)
 integer summariseConnections (Date $start, Date $end)
 integer summariseImpressions (Date $start, Date $end)
 integer summariseRequests (Date $start, Date $end)
Variables
Methods
Constructor Dal_Statistics_AdServer_Split (line 50)

The constructor method.

Dal_Statistics_AdServer_Split Dal_Statistics_AdServer_Split ()
deleteOldData (line 854)

A method to delete old (ie. summarised) raw data.

  • return: The number of raw tables dropped.
integer deleteOldData (Date $summarisedTo)
  • Date $summarisedTo: The date/time up to which data have been summarised (i.e. if there is no newer data than this date (minus any compact_stats_grace window) then the raw table will be dropped, unless required by the tracking module, where installed).

Redefinition of:
Dal_Statistics_AdServer::deleteOldData()
A method to delete old (ie. summarised) raw data.
getMaintenanceStatisticsLastRunInfo (line 87)

A method to find the last time that maintenance statistics was run.

  • return: A Date representing the date up to which the statistics have been summarised, for the specified update type, or the appropriate date based on raw data if maintenance statistics has never been run for the Max module before. Returns null if no raw data is available.
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_AdServer::getMaintenanceStatisticsLastRunInfo()
A method to find the last time that maintenance statistics was run.
singleton (line 61)

The singleton method to create or return a single instance of the class.

  • return: The returned Dal_Statistics_AdServer_Split object.
  • static:

Redefinition of:
Dal_Statistics_AdServer::singleton()
The singleton method to create or return a single instance of the class.
summariseClicks (line 250)

A method for summarising clicks into a temporary table.

  • return: The number of click rows summarised.
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_AdServer::summariseClicks()
A method for summarising clicks into a temporary table.
summariseConnections (line 324)

A method for summarising connections into a temporary table.

  • return: The number of connection rows summarised.
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_AdServer::summariseConnections()
A method for summarising connections into a temporary table.
summariseImpressions (line 175)

A method for summarising impressions into a temporary table.

  • return: The number of impression rows summarised.
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_AdServer::summariseImpressions()
A method for summarising impressions into a temporary table.
summariseRequests (line 100)

A method for summarising requests into a temporary table.

  • return: The number of request rows summarised.
integer summariseRequests (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_AdServer::summariseRequests()
A method for summarising requests into a temporary table.
_saveConnectionsAndVariableValues (line 694)

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.

  • private:
void _saveConnectionsAndVariableValues (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_AdServer::_saveConnectionsAndVariableValues()
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.

Inherited Methods

Inherited From Dal_Statistics_AdServer

 Dal_Statistics_AdServer::Dal_Statistics_AdServer()
 Dal_Statistics_AdServer::decrementCampaigns()
 Dal_Statistics_AdServer::deleteOldData()
 Dal_Statistics_AdServer::getMaintenanceStatisticsLastRunInfo()
 Dal_Statistics_AdServer::logCompletion()
 Dal_Statistics_AdServer::saveHistory()
 Dal_Statistics_AdServer::saveIntermediate()
 Dal_Statistics_AdServer::saveSummary()
 Dal_Statistics_AdServer::singleton()
 Dal_Statistics_AdServer::summariseClicks()
 Dal_Statistics_AdServer::summariseConnections()
 Dal_Statistics_AdServer::summariseImpressions()
 Dal_Statistics_AdServer::summariseRequests()
 Dal_Statistics_AdServer::_getMaintenanceStatisticsLastRunInfo()
 Dal_Statistics_AdServer::_saveConnectionsAndVariableValues()

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()

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