Public Member Functions | |
getBatchModel () | |
getBatchExportModel () | |
getBatchImportModel () | |
Protected Member Functions | |
_copy ($file) | |
Protected Attributes | |
$_batch | |
$_batchExport | |
$_batchImport | |
$_countRows = 0 |
Definition at line 35 of file Abstract.php.
_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
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
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
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 }
$_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.