ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
SystemStylesGlobalScreenToolProvider Class Reference

Class SystemStylesGlobalScreenToolProvider. More...

+ Inheritance diagram for SystemStylesGlobalScreenToolProvider:
+ Collaboration diagram for SystemStylesGlobalScreenToolProvider:

Public Member Functions

 isInterestedInContexts ()
 @inheritDoc More...
 
 getToolsForContextStack (\ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts $called_contexts)
 @inheritDoc More...
 
- 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 (Container $dic)
 @inheritDoc More...
 
 getFullyQualifiedClassName ()
 @inheritDoc More...
 
 getProviderNameForPresentation ()
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\Tool\Provider\DynamicToolProvider
 getToolsForContextStack (CalledContexts $called_contexts)
 
 isInterestedInContexts ()
 

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

Class SystemStylesGlobalScreenToolProvider.

Author
Timon Amstutz

Definition at line 12 of file SystemStylesGlobalScreenToolProvider.php.

Member Function Documentation

◆ getToolsForContextStack()

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

@inheritDoc

Definition at line 27 of file SystemStylesGlobalScreenToolProvider.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->is(ilSystemStyleDocumentationGUI::SHOW_TREE, true)) {
38
39 $title = $this->dic->language()->txt('documentation');
40 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard('stys', $title)->withIsOutlined(true);
41
42 $tools[] = $this->factory
43 ->tool($identification('system_styles_tree'))
44 ->withTitle($title)
45 ->withSymbol($icon)
46 ->withContent($this->dic->ui()->factory()->legacy($exp->getHTML(true)));
47 }
48
49 return $tools;
50 }

References ilSystemStyleDocumentationGUI\SHOW_TREE.

◆ isInterestedInContexts()

Field Documentation

◆ SHOW_MAIL_FOLDERS_TOOL

const SystemStylesGlobalScreenToolProvider::SHOW_MAIL_FOLDERS_TOOL = 'show_mail_folders_tool'

Definition at line 14 of file SystemStylesGlobalScreenToolProvider.php.


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