Esempio n. 1
0
 public function isLocked()
 {
     if (parent::isLocked()) {
         return true;
     }
     return (bool) Mage::getModel('M2ePro/Ebay_Listing')->getCollection()->addFieldToFilter('template_description_mode', Ess_M2ePro_Model_Ebay_Template_Manager::MODE_TEMPLATE)->addFieldToFilter('template_description_id', $this->getId())->getSize() || (bool) Mage::getModel('M2ePro/Ebay_Listing_Product')->getCollection()->addFieldToFilter('template_description_mode', Ess_M2ePro_Model_Ebay_Template_Manager::MODE_TEMPLATE)->addFieldToFilter('template_description_id', $this->getId())->getSize();
 }
Esempio n. 2
0
 public function isLocked()
 {
     if (parent::isLocked()) {
         return true;
     }
     return (bool) Mage::helper('M2ePro/Component_Amazon')->getCollection('Listing_Product')->addFieldToFilter('template_new_product_id', $this->getId())->addFieldToFilter('status', Ess_M2ePro_Model_Listing_Product::STATUS_NOT_LISTED)->getSize();
 }
 /**
  * @return bool
  * @throws Ess_M2ePro_Model_Exception_Logic
  */
 public function isLocked()
 {
     if (parent::isLocked()) {
         return true;
     }
     return (bool) Mage::getModel('M2ePro/Amazon_Listing_Product')->getCollection()->addFieldToFilter('template_shipping_override_id', $this->getId())->getSize();
 }
Esempio n. 4
0
 public function isLocked()
 {
     if (is_null($this->getId())) {
         throw new LogicException('Method require loaded instance first');
     }
     if (parent::isLocked()) {
         return true;
     }
     $childObject = $this->getChildObject();
     if (is_null($childObject)) {
         return false;
     }
     if ($childObject->isLocked()) {
         return true;
     }
     return false;
 }