예제 #1
0
 /**
  * @return bool
  * @throws \Ess\M2ePro\Model\Exception\Logic
  */
 public function isLocked()
 {
     if ($this->isComponentModeEbay() && $this->getAccount()->getChildObject()->isModeSandbox()) {
         return false;
     }
     return parent::isLocked();
 }
예제 #2
0
 /**
  * @return bool
  * @throws \Ess\M2ePro\Model\Exception\Logic
  */
 public function isLocked()
 {
     if (parent::isLocked()) {
         return true;
     }
     return $this->getChildObject()->isLocked();
 }
예제 #3
0
 /**
  * @return bool
  * @throws \Ess\M2ePro\Model\Exception\Logic
  */
 public function isLocked()
 {
     if ($this->isComponentModeEbay() && $this->getAccount()->getChildObject()->isModeSandbox()) {
         return false;
     }
     if (parent::isLocked()) {
         return true;
     }
     return (bool) $this->activeRecordFactory->getObject('Listing\\Product')->getCollection()->addFieldToFilter('listing_id', $this->getId())->addFieldToFilter('status', \Ess\M2ePro\Model\Listing\Product::STATUS_LISTED)->getSize();
 }
예제 #4
0
 /**
  * @param bool $onlyMainConditions
  * @return bool
  * @throws \Ess\M2ePro\Model\Exception\Logic
  */
 public function isLocked($onlyMainConditions = false)
 {
     if ($this->isComponentModeEbay() && $this->getChildObject()->isModeSandbox()) {
         return false;
     }
     if (!$onlyMainConditions && parent::isLocked()) {
         return true;
     }
     return (bool) $this->activeRecordFactory->getObject('Listing')->getCollection()->addFieldToFilter('account_id', $this->getId())->getSize();
 }
예제 #5
0
 /**
  * @return bool
  * @throws \Ess\M2ePro\Model\Exception\Logic
  */
 public function isLocked()
 {
     if ($this->isComponentModeEbay() && $this->getAccount()->getChildObject()->isModeSandbox()) {
         return false;
     }
     if (parent::isLocked()) {
         return true;
     }
     if ($this->getStatus() == self::STATUS_LISTED) {
         return true;
     }
     return false;
 }