ILIAS  release_7 Revision v7.30-3-g800a261c036
ILIAS\Certificate\Provider\CertificateMainBarProvider Class Reference

Class CertificateMainBarProvider. More...

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

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

ILIAS\Certificate\Provider\CertificateMainBarProvider::getStaticSubItems ( )

@inheritDoc

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

Definition at line 28 of file CertificateMainBarProvider.php.

28 : array
29 {
30 global $DIC;
31
32 $title = $this->dic->language()->txt("mm_certificates");
33 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard("cert", $title)->withIsOutlined(true);
34
35 $ctrl = $DIC->ctrl();
36 return [
37 $this->mainmenu->link($this->if->identifier('mm_cert'))
38 ->withTitle($title)
39 ->withAction($ctrl->getLinkTargetByClass(["ilDashboardGUI",
40 "ilAchievementsGUI","ilUserCertificateGUI"]))
41 ->withParent(StandardTopItemsProvider::getInstance()->getAchievementsIdentification())
42 ->withVisibilityCallable(
43 static function () : bool {
44 return (
45 (BasicAccessCheckClosures::getInstance()->isUserLoggedIn())() &&
46 (new ilCertificateActiveValidator())->validate()
47 );
48 }
49 )
50 ->withSymbol($icon)
51 ->withPosition(50),
52 ];
53 }
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12
global $DIC
Definition: goto.php:24
withSymbol(Symbol $symbol)
@inheritDoc

References $DIC, ILIAS\GlobalScreen\Helper\BasicAccessCheckClosures\getInstance(), ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance(), if, and ILIAS\GlobalScreen\Scope\MainMenu\Factory\withSymbol().

+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\Certificate\Provider\CertificateMainBarProvider::getStaticTopItems ( )

@inheritDoc

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

Definition at line 19 of file CertificateMainBarProvider.php.

19 : array
20 {
21 return [];
22 }

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