public function getModuleLicenseUpgradeLink(Aitoc_Aitsys_Model_Module $module, $onlyUrl = true) { if ($license = $module->getLicense()) { $licenseId = $license->getLicenseId(); } else { return ''; } $url = $module->getStoreUrl() . 'aitcprod/license/upgrade/license_id/' . $licenseId; if ($onlyUrl) { return $url; } return '<a target="_blank" href="' . $url . '">' . $this->__('Buy license upgrade') . '</a>'; }
/** * * @param $path * @return Aitoc_Aitsys_Model_Module */ protected function _makeModuleByInstallFile($path) { $module = new Aitoc_Aitsys_Model_Module(); $module->loadByInstallFile(str_replace('.php', '.xml', $path)); $this->tool()->testMsg(get_class($module->getLicense())); $this->tool()->event('aitsys_create_module_after', array('module' => $module)); return $module; }