Mage_Dataflow_Model_Batch_Abstract Class Reference

Inheritance diagram for Mage_Dataflow_Model_Batch_Abstract:

Mage_Core_Model_Abstract Varien_Object Mage_Dataflow_Model_Batch_Export Mage_Dataflow_Model_Batch_Import

List of all members.

Public Member Functions

 setBatchData ($data)
 getBatchData ()
 getIdCollection ($batchId=null)
 deleteCollection ($batchId=null)


Detailed Description

Definition at line 35 of file Abstract.php.


Member Function Documentation

deleteCollection ( batchId = null  ) 

Definition at line 87 of file Abstract.php.

00088     {
00089         if (!is_null($batchId)) {
00090             $this->setBatchId($batchId);
00091         }
00092         return $this->getResource()->deleteCollection($this);
00093     }

getBatchData (  ) 

Retrieve batch data return unserialize data

Returns:
mixed

Definition at line 66 of file Abstract.php.

00067     {
00068         $data = $this->_data['batch_data'];
00069         $data = unserialize($data);
00070         return $data;
00071     }

getIdCollection ( batchId = null  ) 

Retrieve id collection

Parameters:
int $batchId
Returns:
array

Definition at line 79 of file Abstract.php.

00080     {
00081         if (!is_null($batchId)) {
00082             $this->setBatchId($batchId);
00083         }
00084         return $this->getResource()->getIdCollection($this);
00085     }

setBatchData ( data  ) 

Set batch data automatic convert to serialize data

Parameters:
mixed $data
Returns:
Mage_Dataflow_Model_Batch_Abstract

need prepare valid utf-8 data related with php bug #42588

Definition at line 44 of file Abstract.php.

00045     {
00046         /**
00047         * need prepare valid utf-8 data
00048         * related with php bug #42588
00049         */
00050         foreach ($data as $key=>$value) {
00051             $str = @iconv("utf-8", "utf-8//IGNORE", $value);
00052             if ($str) {
00053                 $data[$key] = $str;
00054             }    
00055         }
00056         $this->setData('batch_data', serialize($data));
00057         return $this;
00058     }


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

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