示例#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;
 }