30 const NAME =
'Getting Started';
32 function __construct()
34 parent::__construct(self::NAME, array(
35 self::TITLE => _(
"Getting Started with FOSSology"),
36 self::REQUIRES_LOGIN =>
false,
37 self::MENU_LIST =>
"Help::Getting Started",
46 $topMenuList =
"Main::" .
"Help::Getting Started";
48 menu_insert($topMenuList.
'::Overview', $menuOrder-10, $this->getName().
"&show=welcome");
49 menu_insert($topMenuList.
'::License Browser', $menuOrder, $this->getName().
"&show=licensebrowser");
56 protected function handle(Request $request)
58 $show = $request->get(
'show');
59 if ($show ==
'licensebrowser') {
60 return $this->
render(
"getting_started_licensebrowser.html.twig");
63 if (empty($_SESSION[
'User']) && (plugin_find_id(
"auth") >= 0)) {
64 $login =
"<a href='".Traceback_uri().
"?mod=auth'>$login</a>";
68 return $this->
render(
'getting_started.html.twig', $this->mergeWithDefault($vars));
Traceback_uri()
Get the URI without query to this location.
render($templateName, $vars=null, $headers=null)
RegisterMenus()
Customize submenus.