Mage_Dataflow_Model_Convert_Parser_Abstract Class Reference

Inheritance diagram for Mage_Dataflow_Model_Convert_Parser_Abstract:

Mage_Dataflow_Model_Convert_Container_Abstract Mage_Dataflow_Model_Convert_Parser_Interface Mage_Dataflow_Model_Convert_Container_Interface Mage_Dataflow_Model_Convert_Iterator_File_Csv Mage_Dataflow_Model_Convert_Parser_Csv Mage_Dataflow_Model_Convert_Parser_Serialize Mage_Dataflow_Model_Convert_Parser_Xml_Excel Mage_Dataflow_Model_Session_Parser_Csv Mage_Eav_Model_Convert_Parser_Abstract Mage_Catalog_Model_Convert_Parser_Product Mage_Customer_Model_Convert_Parser_Customer

List of all members.

Public Member Functions

 getBatchModel ()
 getBatchExportModel ()
 getBatchImportModel ()

Protected Member Functions

 _copy ($file)

Protected Attributes

 $_batch
 $_batchExport
 $_batchImport
 $_countRows = 0


Detailed Description

Definition at line 35 of file Abstract.php.


Member Function Documentation

_copy ( file  )  [protected]

Definition at line 108 of file Abstract.php.

00109     {
00110         $ioAdapter = new Varien_Io_File();
00111         if (!$ioAdapter->fileExists($file)) {
00112             Mage::throwException(Mage::helper('dataflow')->__('File "%s" don\'t exist', $file));
00113         }
00114 
00115         $ioAdapter->setAllowCreateFolders(true);
00116         $ioAdapter->createDestinationDir($this->getBatchModel()->getIoAdapter()->getPath());
00117 
00118         return $ioAdapter->cp($file, $this->getBatchModel()->getIoAdapter()->getFile(true));
00119     }

getBatchExportModel (  ) 

Retrieve Batch export model

Returns:
Mage_Dataflow_Model_Batch_Export

Definition at line 85 of file Abstract.php.

00086     {
00087         if (is_null($this->_batchExport)) {
00088             $object = Mage::getModel('dataflow/batch_export');
00089             $this->_batchExport = Varien_Object_Cache::singleton()->save($object);
00090         }
00091         return Varien_Object_Cache::singleton()->load($this->_batchExport);
00092     }

getBatchImportModel (  ) 

Retrieve Batch import model

Returns:
Mage_Dataflow_Model_Import_Export

Definition at line 99 of file Abstract.php.

00100     {
00101         if (is_null($this->_batchImport)) {
00102             $object = Mage::getModel('dataflow/batch_import');
00103             $this->_batchImport = Varien_Object_Cache::singleton()->save($object);
00104         }
00105         return Varien_Object_Cache::singleton()->load($this->_batchImport);
00106     }

getBatchModel (  ) 

Retrieve Batch model singleton

Returns:
Mage_Dataflow_Model_Batch

Definition at line 72 of file Abstract.php.

00073     {
00074         if (is_null($this->_batch)) {
00075             $this->_batch = Mage::getSingleton('dataflow/batch');
00076         }
00077         return $this->_batch;
00078     }


Member Data Documentation

$_batch [protected]

Definition at line 44 of file Abstract.php.

$_batchExport [protected]

Definition at line 51 of file Abstract.php.

$_batchImport [protected]

Definition at line 58 of file Abstract.php.

$_countRows = 0 [protected]

Definition at line 65 of file Abstract.php.


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

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