Public Member Functions | |
getIdCollection (Mage_Dataflow_Model_Batch_Abstract $object) | |
deleteCollection (Mage_Dataflow_Model_Batch_Abstract $object) |
Definition at line 35 of file Abstract.php.
deleteCollection | ( | Mage_Dataflow_Model_Batch_Abstract $ | object | ) |
Delete current Batch collection
Mage_Dataflow_Model_Batch_Abstract | $object |
Definition at line 66 of file Abstract.php.
00067 { 00068 if (!$object->getBatchId()) { 00069 return $this; 00070 } 00071 00072 $this->_getWriteAdapter()->delete($this->getMainTable(), 00073 $this->_getWriteAdapter()->quoteInto('batch_id=?', $object->getBatchId()) 00074 ); 00075 return $this; 00076 }
getIdCollection | ( | Mage_Dataflow_Model_Batch_Abstract $ | object | ) |
Retrieve Id collection
Mage_Dataflow_Model_Batch_Abstract | $object |
Definition at line 43 of file Abstract.php.
00044 { 00045 if (!$object->getBatchId()) { 00046 return array(); 00047 } 00048 00049 $ids = array(); 00050 $select = $this->_getWriteAdapter()->select() 00051 ->from($this->getMainTable(), array($this->getIdFieldName())) 00052 ->where('batch_id=?', $object->getBatchId()); 00053 $query = $this->_getWriteAdapter()->query($select); 00054 while ($row = $query->fetch()) { 00055 $ids[] = $row[$this->getIdFieldName()]; 00056 } 00057 return $ids; 00058 }