ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ilHelpViewLayoutProvider Class Reference

HTML export view layout provider, hides main and meta bar. More...

+ Inheritance diagram for ilHelpViewLayoutProvider:
+ Collaboration diagram for ilHelpViewLayoutProvider:

Public Member Functions

 isInterestedInContexts ()
 
 getMainBarModification (CalledContexts $screen_context_stack)
 No main bar in HTML exports. More...
 
 getMetaBarModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
 __construct (Container $dic)
 @inheritDoc More...
 
 getContentModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getLogoModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getResponsiveLogoModification (CalledContexts $screen_context_stack)
 
 getMainBarModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getMetaBarModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getBreadCrumbsModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getFooterModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getPageBuilderDecorator (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getTitleModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getShortTitleModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
 getViewTitleModification (CalledContexts $screen_context_stack)
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (protected Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
 getContentModification (CalledContexts $screen_context_stack)
 
 getLogoModification (CalledContexts $screen_context_stack)
 
 getResponsiveLogoModification (CalledContexts $screen_context_stack)
 
 getMainBarModification (CalledContexts $screen_context_stack)
 
 getMetaBarModification (CalledContexts $screen_context_stack)
 
 getBreadCrumbsModification (CalledContexts $screen_context_stack)
 
 getFooterModification (CalledContexts $screen_context_stack)
 
 getPageBuilderDecorator (CalledContexts $screen_context_stack)
 
 getTitleModification (CalledContexts $screen_context_stack)
 
 getShortTitleModification (CalledContexts $screen_context_stack)
 
 getViewTitleModification (CalledContexts $screen_context_stack)
 
 isInterestedInContexts ()
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
ContextCollection $context_collection
 
DataFactory $data
 
ModificationFactory $factory
 

Detailed Description

HTML export view layout provider, hides main and meta bar.

Author
killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 36 of file class.ilHelpViewLayoutProvider.php.

Member Function Documentation

◆ getMainBarModification()

ilHelpViewLayoutProvider::getMainBarModification ( CalledContexts  $screen_context_stack)

No main bar in HTML exports.

Reimplemented from ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider.

Definition at line 49 of file class.ilHelpViewLayoutProvider.php.

52 global $DIC;
53
54 $f = $DIC->ui()->factory();
55 $ttm = $DIC->help()->internal()->domain()->tooltips();
56
57 if (!$this->showHelpTool() && !$ttm->isTooltipIdentifierVisible()) {
58 return null;
59 }
60
61
62 $this->globalScreen()->collector()->mainmenu()->collectOnce();
63 foreach ($this->globalScreen()->collector()->mainmenu()->getRawItems() as $item) {
64 if ($item instanceof isDecorateable) {
65 $p = $item->getProviderIdentification();
66
67 $tt_text = $ttm->getMainMenuTooltip($p->getInternalIdentifier());
68 $tt_text = addslashes(str_replace(array("\n", "\r"), '', $tt_text));
69 if ($tt_text !== "") {
70 //$item->withTopics($DIC->ui()->factory()->helpTopics($p->getInternalIdentifier()));
71 $item->withTopics(...$DIC->ui()->factory()->helpTopics($tt_text));
72 }
73 }
74 }
75
76 return null;
77 }
global $DIC
Definition: shib_login.php:26

◆ getMetaBarModification()

ilHelpViewLayoutProvider::getMetaBarModification ( CalledContexts  $screen_context_stack)

@inheritDoc

Reimplemented from ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider.

Definition at line 79 of file class.ilHelpViewLayoutProvider.php.

80 {
81 global $DIC;
82
83 $ttm = $DIC->help()->internal()->domain()->tooltips();
84
85 if (!$this->showHelpTool() && !$ttm->isTooltipIdentifierVisible()) {
86 return null;
87 }
88
89 // add id mapping of all main menu items to gui
90 $this->globalScreen()->collector()->metaBar()->collectOnce();
91 foreach ($this->globalScreen()->collector()->metaBar()->getRawItems() as $item) {
92 if ($item instanceof isDecorateable) {
93 $p = $item->getProviderIdentification();
94
95 $tt_text = $ttm->getMainMenuTooltip($p->getInternalIdentifier());
96 $tt_text = addslashes(str_replace(array("\n", "\r"), '', $tt_text));
97 if ($tt_text !== "") {
98 //$item->withTopics($DIC->ui()->factory()->helpTopics($p->getInternalIdentifier()));
99 $item->withTopics(...$DIC->ui()->factory()->helpTopics($tt_text));
100 }
101 }
102 }
103 return null;
104 }

References $DIC, and ILIAS\Repository\globalScreen().

+ Here is the call graph for this function:

◆ isInterestedInContexts()

ilHelpViewLayoutProvider::isInterestedInContexts ( )

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