Example #1
0
 protected function beforeStart()
 {
     parent::beforeStart();
     $this->runner = Mage::getModel('M2ePro/Synchronization_Templates_Runner');
     $this->runner->setConnectorModel('Connector_Play_Product_Dispatcher');
     $this->runner->setMaxProductsPerStep(100);
     $this->runner->setLockItem($this->getActualLockItem());
     $this->runner->setPercentsStart($this->getPercentsStart() + $this->getPercentsInterval() / 2);
     $this->runner->setPercentsEnd($this->getPercentsEnd());
     $this->inspector = Mage::getModel('M2ePro/Play_Synchronization_Templates_Inspector');
     $this->changesHelper = Mage::getModel('M2ePro/Synchronization_Templates_Changes');
     $this->changesHelper->setComponent($this->getComponent());
     $this->changesHelper->init();
 }