/** * Check if module license is available and allowed * * @param \XLite\Model\Module $module Module * * @return boolean */ protected function isLicenseAllowed(\XLite\Model\Module $module) { return \XLite\Model\Module::NOT_XCN_MODULE == $module->getXcnPlan() || \XLite\Model\Module::NOT_XCN_MODULE < $module->getXcnPlan() && 1 == $module->getEditionState(); }
/** * {@inheritDoc} */ public function getXcnPlan() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getXcnPlan', array()); return parent::getXcnPlan(); }
/** * Check if the module is part of X-Cart 5 license * * @param \XLite\Model\Module $module Module entity * * @return boolean */ protected function isXCN(\XLite\Model\Module $module) { return $module->isAvailable() && \XLite\Model\Module::NOT_XCN_MODULE < intval($module->getXcnPlan()); }