ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
SystemStylesGlobalScreenToolProvider Class Reference

Class SystemStylesGlobalScreenToolProvider. More...

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

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

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)

Definition at line 27 of file SystemStylesGlobalScreenToolProvider.php.

References ilSystemStyleDocumentationGUI\SHOW_TREE.

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)) {
37  $exp = new ilKSDocumentationExplorerGUI();
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  }

◆ 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: