Class Dal_Statistics_Tracker_Split

Description

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

the Tracker module, when split tables are in use

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

Dal
   |
   --Dal_Statistics_Common
      |
      --Dal_Statistics_Tracker
         |
         --Dal_Statistics_Tracker_Split
Method Summary
 Dal_Statistics_Tracker_Split Dal_Statistics_Tracker_Split ()
 integer deleteOldData (Date $summarisedTo)
 Date getMaintenanceStatisticsLastRunInfo (integer $type, [Date $now = null])
Variables
Methods
Constructor Dal_Statistics_Tracker_Split (line 50)

The constructor method.

Dal_Statistics_Tracker_Split Dal_Statistics_Tracker_Split ()
deleteOldData (line 102)

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_Tracker::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_Tracker::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_Tracker_Split object.
  • static:

Redefinition of:
Dal_Statistics_Tracker::singleton()
The singleton method to create or return a single instance of the class.

Inherited Methods

Inherited From Dal_Statistics_Tracker

 Dal_Statistics_Tracker::Dal_Statistics_Tracker()
 Dal_Statistics_Tracker::deleteOldData()
 Dal_Statistics_Tracker::getMaintenanceStatisticsLastRunInfo()
 Dal_Statistics_Tracker::logCompletion()
 Dal_Statistics_Tracker::singleton()
 Dal_Statistics_Tracker::_getMaintenanceStatisticsLastRunInfo()

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:11 +0000 by phpDocumentor 1.3.0RC3