/** * getApp * * @return string */ protected function getApp() { $root = JFactory::getUri()->root(); $platform = F0FPlatform::getInstance(); $key = $this->getAppKey(); $file = $platform->getCache($key); $cached = true; $expiration = EParameter::getExpiration(); if (empty($file) || !file_exists($file) || filectime($file) < $expiration) { $cached = false; $file = $this->_getOptimizedApp($this->appDependencies, $this->appPaths); } $url = $root . str_replace(JPATH_ROOT . DIRECTORY_SEPARATOR, '', $file); $jsapp = '<script src="' . $root . 'media/lib_extly/js/require/require.min.js"></script>' . "\n"; $jsapp .= '<script src="' . $url . ($this->version ? '?' . $this->version : '') . '" ></script>' . "\n"; $jsapp .= $this->_generateRequire($key); $this->addPostRequireHook($jsapp); if (!$cached) { $platform->setCache($key, $file); } return $jsapp; }