/** * {@inheritDoc} */ public function getMarketplaceID() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getMarketplaceID', array()); return parent::getMarketplaceID(); }
/** * Return true if module upgrade is allowed (selected by user) * * @param \XLite\Model\Module $module Module object * * @return boolean */ protected function isModuleUpgradeSelected($module) { $result = true; if (\XLite\Core\Session::getInstance()->selectedEntries && is_array(\XLite\Core\Session::getInstance()->selectedEntries)) { $moduleID = $module->getMarketplaceID(); $result = !empty(\XLite\Core\Session::getInstance()->selectedEntries[$moduleID]); } if (!$result && $module->getIsSystem() && $this->isCoreUpgradeSelected()) { $result = true; } return $result; }