Mage_Dataflow_Model_Mysql4_Batch_Collection Class Reference

Inheritance diagram for Mage_Dataflow_Model_Mysql4_Batch_Collection:

Mage_Core_Model_Mysql4_Collection_Abstract Varien_Data_Collection_Db Varien_Data_Collection

List of all members.

Public Member Functions

 addExpireFilter ()

Protected Member Functions

 _construct ()


Detailed Description

Definition at line 35 of file Collection.php.


Member Function Documentation

_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     }


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

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