/** * {@inheritDoc} */ public function getIsSystem() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getIsSystem', array()); return parent::getIsSystem(); }
/** * 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; }