public function isLocked() { if (parent::isLocked()) { return true; } return $this->getChildObject()->isLocked(); }
public function isLocked($onlyMainConditions = false) { if (!$onlyMainConditions && parent::isLocked()) { return true; } return (bool) Mage::getModel('M2ePro/Listing')->getCollection()->addFieldToFilter('account_id', $this->getId())->getSize(); }
public function isLocked() { if (parent::isLocked()) { return true; } return (bool) Mage::getModel('M2ePro/Listing')->getCollection()->addFieldToFilter('template_selling_format_id', $this->getId())->getSize(); }
public function isLocked() { if (parent::isLocked()) { return true; } return (bool) Mage::getModel('M2ePro/Listing_Product')->getCollection()->addFieldToFilter('listing_id', $this->getId())->addFieldToFilter('status', Ess_M2ePro_Model_Listing_Product::STATUS_LISTED)->getSize(); }
public function isLocked($onlyMainConditions = false) { if (!$onlyMainConditions && parent::isLocked()) { return true; } return (bool) Mage::getModel('M2ePro/Template_General')->getCollection()->addFieldToFilter('marketplace_id', $this->getId())->getSize(); }
public function isLocked() { if (parent::isLocked()) { return true; } if ($this->getStatus() == self::STATUS_LISTED) { return true; } return false; }
/** * @return bool * @throws Ess_M2ePro_Model_Exception_Logic */ public function isLocked() { if (parent::isLocked()) { return true; } if ($this->isComponentModeEbay() && $this->getAccount()->getChildObject()->isModeSandbox()) { return false; } return (bool) Mage::getModel('M2ePro/Listing_Product')->getCollection()->addFieldToFilter('listing_id', $this->getId())->addFieldToFilter('status', Ess_M2ePro_Model_Listing_Product::STATUS_LISTED)->getSize(); }
public function isLocked($onlyMainConditions = false) { if (!$onlyMainConditions && parent::isLocked()) { return true; } if ($this->isComponentModeEbay() && $this->getChildObject()->isModeSandbox()) { return false; } return (bool) Mage::getModel('M2ePro/Listing')->getCollection()->addFieldToFilter('account_id', $this->getId())->getSize(); }
/** * @return bool * @throws Ess_M2ePro_Model_Exception_Logic */ public function isLocked() { if (parent::isLocked()) { return true; } if ($this->isComponentModeEbay() && $this->getAccount()->getChildObject()->isModeSandbox()) { return false; } if ($this->getStatus() == self::STATUS_LISTED) { return true; } return false; }