Пример #1
0
 protected function intervalIsLocked()
 {
     if ($this->getInitiator() == \Ess\M2ePro\Helper\Data::INITIATOR_DEVELOPER) {
         return false;
     }
     return parent::intervalIsLocked();
 }
Пример #2
0
 protected function intervalGetLastTime()
 {
     $currentLastTime = parent::intervalGetLastTime();
     if (empty($currentLastTime)) {
         return null;
     }
     if (!in_array(\Ess\M2ePro\Model\Synchronization\Task\AbstractComponent::OTHER_LISTINGS, $this->getAllowedTasksTypes())) {
         return $currentLastTime;
     }
     $otherListingsLastTime = $this->getConfigValue('/amazon/other_listings/update/', 'last_time');
     if (empty($otherListingsLastTime)) {
         return null;
     }
     if (strtotime($otherListingsLastTime) < strtotime($currentLastTime)) {
         return $otherListingsLastTime;
     }
     return $currentLastTime;
 }