Public Member Functions | |
addExpireFilter () | |
Protected Member Functions | |
_construct () |
Definition at line 35 of file Collection.php.
_construct | ( | ) | [protected] |
Init model
Reimplemented from Mage_Core_Model_Mysql4_Collection_Abstract.
Definition at line 41 of file Collection.php.
00042 { 00043 $this->_init('dataflow/batch'); 00044 }
addExpireFilter | ( | ) |
Add expire filter (for abandoned batches)
Definition at line 50 of file Collection.php.
00051 { 00052 $date = Mage::getSingleton('core/date'); 00053 /* @var $date Mage_Core_Model_Date */ 00054 $lifetime = Mage_Dataflow_Model_Batch::LIFETIME; 00055 $expire = $date->gmtDate(null, $date->timestamp() - $lifetime); 00056 00057 $this->getSelect()->where('created_at < ?', $expire); 00058 }