ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
MailGlobalScreenToolProvider Class Reference

Class MailGlobalScreenToolProvider. More...

+ Inheritance diagram for MailGlobalScreenToolProvider:
+ Collaboration diagram for MailGlobalScreenToolProvider:

Public Member Functions

 isInterestedInContexts ()
 
 getToolsForContextStack (\ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts $called_contexts)
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\Tool\Provider\AbstractDynamicToolProvider
 __construct (Container $dic)
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\Tool\Provider\DynamicToolProvider
 getToolsForContextStack (CalledContexts $called_contexts)
 

Data Fields

const 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
 $identification_provider
 
 $context_collection
 
 $factory
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 $dic
 

Detailed Description

Member Function Documentation

◆ getToolsForContextStack()

MailGlobalScreenToolProvider::getToolsForContextStack ( \ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts  $called_contexts)

Definition at line 27 of file MailGlobalScreenToolProvider.php.

27  : array
28  {
29  $identification = function ($id) {
30  return $this->identification_provider->contextAwareIdentifier($id);
31  };
32 
33  $tools = [];
34 
35  $additional_data = $called_contexts->getLast()->getAdditionalData();
36  if ($additional_data->exists(self::SHOW_MAIL_FOLDERS_TOOL) && $additional_data->get(self::SHOW_MAIL_FOLDERS_TOOL) === true) {
37  $title = $this->dic->language()->txt('mail_folders');
38  $icon = $this->dic->ui()->factory()->symbol()->icon()->standard('mail', $title)->withIsOutlined(true);
39 
40  $tools[] = $this->factory
41  ->tool($identification('mail_folders_tree'))
42  ->withTitle($title)
43  ->withSymbol($icon)
44  ->withContentWrapper(function () {
45  $exp = new ilMailExplorer(new ilMailGUI(), $this->dic->user()->getId());
46 
47  return $this->dic->ui()->factory()->legacy($exp->getHTML(true));
48  });
49  }
50 
51  return $tools;
52  }
Class Mail Explorer class for explorer view for mailboxes.

◆ isInterestedInContexts()

MailGlobalScreenToolProvider::isInterestedInContexts ( )

Field Documentation

◆ SHOW_MAIL_FOLDERS_TOOL

const MailGlobalScreenToolProvider::SHOW_MAIL_FOLDERS_TOOL = 'show_mail_folders_tool'

Definition at line 12 of file MailGlobalScreenToolProvider.php.

Referenced by ilMailGUI\__construct().


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