ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Mail\Provider\MailGlobalScreenToolProvider Class Reference
+ Inheritance diagram for ILIAS\Mail\Provider\MailGlobalScreenToolProvider:
+ Collaboration diagram for ILIAS\Mail\Provider\MailGlobalScreenToolProvider:

Public Member Functions

 isInterestedInContexts ()
 
 getToolsForContextStack (CalledContexts $called_contexts)
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\Tool\Provider\AbstractDynamicToolProvider
 __construct (Container $dic)
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (protected Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
 getToolsForContextStack (CalledContexts $called_contexts)
 
 isInterestedInContexts ()
 

Data Fields

final const string SHOW_MAIL_FOLDERS_TOOL = 'show_mail_folders_tool'
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\Tool\Provider\AbstractDynamicToolProvider
ToolIdentificationProviderInterface $identification_provider
 
ContextCollection $context_collection
 
ToolFactory $factory
 

Detailed Description

Definition at line 31 of file MailGlobalScreenToolProvider.php.

Member Function Documentation

◆ getToolsForContextStack()

ILIAS\Mail\Provider\MailGlobalScreenToolProvider::getToolsForContextStack ( CalledContexts  $called_contexts)
Parameters
CalledContexts$called_contexts
Returns
Tool[] These Slates can be passed to the MainMenu dynamic for a specific location/context.
See also
DynamicProvider

Implements ILIAS\GlobalScreen\Scope\Tool\Provider\DynamicToolProvider.

Definition at line 40 of file MailGlobalScreenToolProvider.php.

42 : array {
43 $identification = fn($id): IdentificationInterface => $this->identification_provider->contextAwareIdentifier($id);
44
45 $tools = [];
46
47 $additional_data = $called_contexts->getLast()->getAdditionalData();
48 if ($additional_data->exists(self::SHOW_MAIL_FOLDERS_TOOL) &&
49 $additional_data->get(self::SHOW_MAIL_FOLDERS_TOOL) === true) {
50 $title = $this->dic->language()->txt('mail_folders');
51 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard('mail', $title);
52
53 $tools[] = $this->factory
54 ->tool($identification('mail_folders_tree'))
55 ->withTitle($title)
56 ->withSymbol($icon)
57 ->withContentWrapper(function (): Content {
58 $exp = new ilMailExplorer(new ilMailGUI(), $this->dic->user()->getId());
59
60 return $this->dic->ui()->factory()->legacy()->content($exp->getHTML(true));
61 });
62 }
63
64 return $tools;
65 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
factory()
@ilCtrl_Calls ilMailGUI: ilMailFolderGUI, ilMailFormGUI, ilContactGUI, ilMailOptionsGUI,...

References factory().

+ Here is the call graph for this function:

◆ isInterestedInContexts()

ILIAS\Mail\Provider\MailGlobalScreenToolProvider::isInterestedInContexts ( )
Returns
ContextCollection

Implements ILIAS\GlobalScreen\ScreenContext\ScreenContextAwareProvider.

Definition at line 35 of file MailGlobalScreenToolProvider.php.

35 : ContextCollection
36 {
37 return $this->context_collection->main()->repository()->administration();
38 }

References ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection\main().

+ Here is the call graph for this function:

Field Documentation

◆ SHOW_MAIL_FOLDERS_TOOL

final const string ILIAS\Mail\Provider\MailGlobalScreenToolProvider::SHOW_MAIL_FOLDERS_TOOL = 'show_mail_folders_tool'

Definition at line 33 of file MailGlobalScreenToolProvider.php.


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