ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
CertificateMainBarProvider.php
Go to the documentation of this file.
1 <?php namespace ILIAS\Certificate\Provider;
2 
6 
13 {
14 
18  public function getStaticTopItems() : array
19  {
20  return [];
21  }
22 
23 
27  public function getStaticSubItems() : array
28  {
29  global $DIC;
30 
31  $title = $this->dic->language()->txt("mm_certificates");
32  $icon = $this->dic->ui()->factory()->symbol()->icon()->standard("cert", $title)->withIsOutlined(true);
33 
34  $access_helper = BasicAccessCheckClosures::getInstance();
35 
36  $ctrl = $DIC->ctrl();
37  return [
38  $this->mainmenu->link($this->if->identifier('mm_cert'))
39  ->withTitle($title)
40  ->withAction($ctrl->getLinkTargetByClass(["ilDashboardGUI",
41  "ilAchievementsGUI","ilUserCertificateGUI"]))
42  ->withParent(StandardTopItemsProvider::getInstance()->getAchievementsIdentification())
43  ->withVisibilityCallable($access_helper->isUserLoggedIn())
44  ->withSymbol($icon)
45  ->withPosition(50),
46  ];
47  }
48 }
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12
$DIC
Definition: xapitoken.php:46