Mage_Log_Model_Aggregation Class Reference

Inheritance diagram for Mage_Log_Model_Aggregation:

Mage_Core_Model_Abstract Varien_Object

List of all members.

Public Member Functions

 run ()
 getLastRecordDate ()

Protected Member Functions

 _construct ()


Detailed Description

Definition at line 27 of file Aggregation.php.


Member Function Documentation

_construct (  )  [protected]

Enter description here...

Reimplemented from Varien_Object.

Definition at line 29 of file Aggregation.php.

00030     {
00031         $this->_init('log/aggregation');
00032     }

getLastRecordDate (  ) 

Definition at line 100 of file Aggregation.php.

00101     {
00102         $result = $this->_getResource()->getLastRecordDate();
00103         if (!$result)
00104             $result = $this->_date(strtotime('now - 2 months'));
00105 
00106         return $result;
00107     }

run (  ) 

Definition at line 34 of file Aggregation.php.

00035     {
00036         $this->_lastRecord = $this->_timestamp($this->_round($this->getLastRecordDate()));
00037         $stores = Mage::getResourceModel('core/store_collection');
00038 
00039         foreach ($stores as $store) {
00040             $this->_process($store->getId());
00041         }
00042     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:28 2009 for Magento by  doxygen 1.5.8