コード例 #1
0
ファイル: Defected.php プロジェクト: Doability/magento2dev
 protected function intervalIsLocked()
 {
     if ($this->getInitiator() == \Ess\M2ePro\Helper\Data::INITIATOR_DEVELOPER) {
         return false;
     }
     return parent::intervalIsLocked();
 }
コード例 #2
0
ファイル: Update.php プロジェクト: Doability/magento2dev
 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;
 }