/** * @return bool * @throws \Ess\M2ePro\Model\Exception\Logic */ public function isLocked() { if ($this->isComponentModeEbay() && $this->getAccount()->getChildObject()->isModeSandbox()) { return false; } return parent::isLocked(); }
/** * @return bool * @throws \Ess\M2ePro\Model\Exception\Logic */ public function isLocked() { if (parent::isLocked()) { return true; } return $this->getChildObject()->isLocked(); }
/** * @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(); }
/** * @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(); }
/** * @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; }