Esempio n. 1
0
 /**
  * @return \Ess\M2ePro\Model\LockItem
  */
 protected function getLockItem()
 {
     if (!is_null($this->lockItem)) {
         return $this->lockItem;
     }
     $this->lockItem = $this->activeRecordFactory->getObject('LockItem');
     $this->lockItem->setNick('cron_task_' . $this->getNick());
     return $this->lockItem;
 }
Esempio n. 2
0
 /**
  * @return \Ess\M2ePro\Model\LockItem
  */
 private function getFastTasksLockItem()
 {
     if (!is_null($this->fastTasksLockItem)) {
         return $this->fastTasksLockItem;
     }
     $this->fastTasksLockItem = $this->activeRecordFactory->getObject('LockItem');
     $this->fastTasksLockItem->setNick('cron_strategy_parallel_fast_tasks');
     return $this->fastTasksLockItem;
 }
Esempio n. 3
0
 public function __construct(\Ess\M2ePro\Model\Factory $modelFactory, \Ess\M2ePro\Model\ActiveRecord\Factory $activeRecordFactory, \Ess\M2ePro\Helper\Factory $helperFactory, \Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Model\ResourceModel\AbstractResource $resource = null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null, array $data = [])
 {
     $this->setNick('synchronization');
     parent::__construct($modelFactory, $activeRecordFactory, $helperFactory, $context, $registry, $resource, $resourceCollection, $data);
 }