ILIAS  release_7 Revision v7.30-3-g800a261c036
ILIAS\Notes\Provider\NotesMainBarProvider Class Reference

Class NotesMainBarProvider. More...

+ Inheritance diagram for ILIAS\Notes\Provider\NotesMainBarProvider:
+ Collaboration diagram for ILIAS\Notes\Provider\NotesMainBarProvider:

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\Notes\Provider\NotesMainBarProvider::getStaticSubItems ( )

@inheritDoc

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

Definition at line 27 of file NotesMainBarProvider.php.

27 : array
28 {
30 $ctrl = $dic->ctrl();
31
32 // Comments
33 $title = $dic->language()->txt("mm_comments");
34 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(Standard::COMS, $title)->withIsOutlined(true);
35 $comments = $this->mainmenu->link($this->if->identifier('mm_pd_comments'))
36 ->withTitle($title)
37 ->withAction($ctrl->getLinkTargetByClass(["ilDashboardGUI", "ilPDNotesGUI"], "showPublicComments"))
38 ->withParent(StandardTopItemsProvider::getInstance()->getCommunicationIdentification())
39 ->withPosition(40)
40 ->withSymbol($icon)
41 ->withNonAvailableReason($this->dic->ui()->factory()->legacy("{$this->dic->language()->txt('component_not_active')}"))
42 ->withAvailableCallable(
43 function () use ($dic) {
44 return (bool) (!$dic->settings()->get("disable_comments"));
45 }
46 );
47
48 $title = $dic->language()->txt("mm_notes");
49 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(Standard::NOTS, $title)->withIsOutlined(true);
50
51 // Notes
52 $notes = $this->mainmenu->link($this->if->identifier('mm_pd_notes'))
53 ->withTitle($title)
54 ->withAction($ctrl->getLinkTargetByClass(["ilDashboardGUI", "ilPDNotesGUI"], "showPrivateNotes"))
55 ->withParent(StandardTopItemsProvider::getInstance()->getPersonalWorkspaceIdentification())
56 ->withPosition(70)
57 ->withSymbol($icon)
58 ->withNonAvailableReason($this->dic->ui()->factory()->legacy("{$this->dic->language()->txt('component_not_active')}"))
59 ->withAvailableCallable(
60 function () use ($dic) {
61 return (bool) (!$dic->settings()->get("disable_notes"));
62 }
63 );
64
65 return [
66 $comments,
67 $notes,
68 ];
69 }
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12

References ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\$dic, ILIAS\UI\Component\Symbol\Icon\Standard\COMS, ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance(), if, and ILIAS\UI\Component\Symbol\Icon\Standard\NOTS.

+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\Notes\Provider\NotesMainBarProvider::getStaticTopItems ( )

@inheritDoc

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

Definition at line 18 of file NotesMainBarProvider.php.

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

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