protected function makeTask($taskPath)
 {
     $task = parent::makeTask($taskPath);
     $task->setRunner($this->runner);
     $task->setInspector($this->inspector);
     $task->setChangesHelper($this->changesHelper);
     return $task;
 }
 protected function configureLockItemBeforeStart()
 {
     parent::configureLockItemBeforeStart();
     $componentName = '';
     if (count(Mage::helper('M2ePro/Component')->getActiveComponents()) > 1) {
         $componentName = Mage::helper('M2ePro/Component_Amazon')->getTitle() . ' ';
     }
     $params = $this->getParams();
     /** @var $marketplace Ess_M2ePro_Model_Marketplace **/
     $marketplace = Mage::helper('M2ePro/Component_Amazon')->getObject('Marketplace', (int) $params['marketplace_id']);
     $this->getActualLockItem()->setTitle($componentName . Mage::helper('M2ePro')->__($marketplace->getTitle()));
 }
 protected function intervalIsLocked()
 {
     if ($this->getInitiator() == Ess_M2ePro_Helper_Data::INITIATOR_USER || $this->getInitiator() == Ess_M2ePro_Helper_Data::INITIATOR_DEVELOPER) {
         return false;
     }
     if (!in_array(Ess_M2ePro_Model_Synchronization_Task_Abstract::DEFAULTS, $this->getAllowedTasksTypes())) {
         return parent::intervalIsLocked();
     }
     $synchronizationStartTime = $this->getParentOperationHistory()->getObject()->getData('start_date');
     $updateListingsProductsLastTime = $this->getConfigValue('/amazon/defaults/update_listings_products/', 'last_time');
     return strtotime($synchronizationStartTime) > strtotime($updateListingsProductsLastTime);
 }
Example #4
0
 protected function processTask($taskPath)
 {
     return parent::processTask('Marketplaces_' . $taskPath);
 }
 protected function processTask($taskPath)
 {
     return parent::processTask('Orders_' . $taskPath);
 }
Example #6
0
 protected function processTask($taskPath)
 {
     return parent::processTask('Templates_' . $taskPath);
 }
Example #7
0
 protected function processTask($taskPath)
 {
     return parent::processTask('Defaults_' . $taskPath);
 }
 protected function processTask($taskPath)
 {
     return parent::processTask('OtherListings_' . $taskPath);
 }