Ejemplo n.º 1
0
 public function isLocked()
 {
     if (parent::isLocked()) {
         return true;
     }
     return $this->getChildObject()->isLocked();
 }
Ejemplo n.º 2
0
 public function isLocked($onlyMainConditions = false)
 {
     if (!$onlyMainConditions && parent::isLocked()) {
         return true;
     }
     return (bool) Mage::getModel('M2ePro/Listing')->getCollection()->addFieldToFilter('account_id', $this->getId())->getSize();
 }
Ejemplo n.º 3
0
 public function isLocked()
 {
     if (parent::isLocked()) {
         return true;
     }
     return (bool) Mage::getModel('M2ePro/Listing')->getCollection()->addFieldToFilter('template_selling_format_id', $this->getId())->getSize();
 }
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 5
0
 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();
 }
Ejemplo n.º 6
0
 public function isLocked()
 {
     if (parent::isLocked()) {
         return true;
     }
     if ($this->getStatus() == self::STATUS_LISTED) {
         return true;
     }
     return false;
 }
Ejemplo n.º 7
0
 /**
  * @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();
 }
Ejemplo n.º 8
0
 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();
 }
Ejemplo n.º 9
0
 /**
  * @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;
 }