ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ILIAS\GlobalScreen\Provider\Provider\CertificateMainBarProvider Class Reference

Class CertificateMainBarProvider. More...

+ Inheritance diagram for ILIAS\GlobalScreen\Provider\Provider\CertificateMainBarProvider:
+ Collaboration diagram for ILIAS\GlobalScreen\Provider\Provider\CertificateMainBarProvider:

Public Member Functions

 getStaticTopItems ()
 
 getStaticSubItems ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
 __construct (Container $dic)
 
 getAllIdentifications ()
 
 provideTypeInformation ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (protected Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
Container $dic
 
IdentificationProviderInterface $if
 
MainMenuItemFactory $mainmenu
 

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

ILIAS\GlobalScreen\Provider\Provider\CertificateMainBarProvider::getStaticSubItems ( )
Returns
isItem[] These are Entries which will be available for configuration.

Implements ILIAS\GlobalScreen\Scope\MainMenu\Provider\StaticMainMenuProvider.

Definition at line 39 of file CertificateMainBarProvider.php.

References $DIC, ILIAS\GlobalScreen\Helper\BasicAccessCheckClosuresSingleton\getInstance(), ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance(), if, ILIAS\GlobalScreen\Scope\Footer\Factory\withParent(), ILIAS\GlobalScreen\Scope\MainMenu\Factory\withSymbol(), ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle(), and ILIAS\GlobalScreen\Scope\withVisibilityCallable().

39  : array
40  {
41  global $DIC;
42 
43  $title = $this->dic->language()->txt("mm_certificates");
44  $icon = $this->dic->ui()->factory()->symbol()->icon()->standard("cert", $title);
45 
46  $ctrl = $DIC->ctrl();
47  return [
48  $this->mainmenu
49  ->link($this->if->identifier('mm_cert'))
50  ->withTitle($title)
51  ->withAction(
52  $ctrl->getLinkTargetByClass(
53  [
54  \ilDashboardGUI::class,
55  \ilAchievementsGUI::class,
56  \ilUserCertificateGUI::class
57  ]
58  )
59  )
60  ->withParent(StandardTopItemsProvider::getInstance()->getAchievementsIdentification())
62  static function (): bool {
63  return (
64  BasicAccessCheckClosuresSingleton::getInstance()->isUserLoggedIn()() &&
65  (new ilCertificateActiveValidator())->validate()
66  );
67  }
68  )
69  ->withSymbol($icon)
70  ->withPosition(50),
71  ];
72  }
if(!file_exists('../ilias.ini.php'))
withVisibilityCallable(callable $is_visible)
global $DIC
Definition: shib_login.php:26
withParent(IdentificationInterface $identification)
+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\GlobalScreen\Provider\Provider\CertificateMainBarProvider::getStaticTopItems ( )
Returns
TopParentItem[] These are Slates which will be available for configuration.

Implements ILIAS\GlobalScreen\Scope\MainMenu\Provider\StaticMainMenuProvider.

Definition at line 34 of file CertificateMainBarProvider.php.

34  : array
35  {
36  return [];
37  }

The documentation for this class was generated from the following file: