Public Member Functions | |
run () | |
getLastRecordDate () | |
Protected Member Functions | |
_construct () |
Definition at line 27 of file Aggregation.php.
_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 }