/** * @param Ess_M2ePro_Model_Component_Parent_Abstract $object */ public function setParentObject(Ess_M2ePro_Model_Component_Parent_Abstract $object) { if (is_null($object->getId())) { return; } $this->parentObject = $object; }
public function deleteInstance() { $temp = parent::deleteInstance(); $temp && ($this->listingProductVariationModel = NULL); $temp && ($this->magentoProductModel = NULL); return $temp; }
public function isLocked() { if (parent::isLocked()) { return true; } return $this->getChildObject()->isLocked(); }
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($onlyMainConditions = false) { if (!$onlyMainConditions && parent::isLocked()) { return true; } return (bool) Mage::getModel('M2ePro/Template_General')->getCollection()->addFieldToFilter('account_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 deleteInstance() { $temp = parent::deleteInstance(); $temp && ($this->accountModel = NULL); $temp && ($this->marketplaceModel = NULL); $temp && ($this->magentoProductModel = NULL); return $temp; }
public function __construct() { $args = func_get_args(); empty($args[0]) && ($args[0] = array()); $params = $args[0]; $params['child_mode'] = Ess_M2ePro_Helper_Component_Ebay::NICK; parent::__construct($params); }
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; } if ($this->getStatus() == self::STATUS_LISTED) { return true; } return false; }
public function delete() { Mage::helper('M2ePro/Data_Cache_Permanent')->removeTagValues('template_sellingformat'); return parent::delete(); }
public function _construct() { parent::_construct(); $this->_init('M2ePro/Listing_Product_Variation'); }
public function delete() { Mage::helper('M2ePro/Data_Cache')->removeTagValues('template_synchronization'); return parent::delete(); }
public function _construct() { parent::_construct(); $this->_init('M2ePro/Order'); }
public function delete() { Mage::helper('M2ePro/Data_Cache')->removeTagValues('account'); return parent::delete(); }
public function delete() { Mage::helper('M2ePro/Data_Cache_Permanent')->removeTagValues('listing'); return parent::delete(); }
public function _construct() { parent::_construct(); $this->_init('M2ePro/Listing_Auto_Category_Group'); }