コード例 #1
0
ファイル: Item.php プロジェクト: newedge-media/iwantmymeds
 public function isLocked()
 {
     if (parent::isLocked()) {
         return true;
     }
     return $this->getChildObject()->isLocked();
 }
コード例 #2
0
ファイル: Account.php プロジェクト: xiaoguizhidao/ecommerce
 public function isLocked($onlyMainConditions = false)
 {
     if (!$onlyMainConditions && parent::isLocked()) {
         return true;
     }
     return (bool) Mage::getModel('M2ePro/Listing')->getCollection()->addFieldToFilter('account_id', $this->getId())->getSize();
 }
コード例 #3
0
ファイル: SellingFormat.php プロジェクト: xiaoguizhidao/beut
 public function isLocked()
 {
     if (parent::isLocked()) {
         return true;
     }
     return (bool) Mage::getModel('M2ePro/Listing')->getCollection()->addFieldToFilter('template_selling_format_id', $this->getId())->getSize();
 }
コード例 #4
0
ファイル: Listing.php プロジェクト: xiaoguizhidao/ecommerce
 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();
 }
コード例 #5
0
ファイル: Marketplace.php プロジェクト: xiaoguizhidao/beut
 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();
 }
コード例 #6
0
ファイル: Product.php プロジェクト: xiaoguizhidao/ecommerce
 public function isLocked()
 {
     if (parent::isLocked()) {
         return true;
     }
     if ($this->getStatus() == self::STATUS_LISTED) {
         return true;
     }
     return false;
 }
コード例 #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();
 }
コード例 #8
0
ファイル: Account.php プロジェクト: newedge-media/iwantmymeds
 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();
 }
コード例 #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;
 }