/** * @return bool */ public function isAllAllowed() { if ($this->isEmptyMode()) { return false; } return parent::isAllAllowed(); }
/** * @param Ess_M2ePro_Model_Listing_Product_Action_Configurator $configurator * @return $this */ public function mergeData(Ess_M2ePro_Model_Listing_Product_Action_Configurator $configurator) { if ($this->isAllAllowed()) { return $this; } if ($configurator->isAllAllowed()) { $this->setFullMode(); return $this; } if (!$this->isPartialMode()) { $this->setPartialMode(); } $this->allowedDataTypes = array_unique(array_merge($this->getAllowedDataTypes(), $configurator->getAllowedDataTypes())); return $this; }