ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilHelpViewLayoutProvider.php
Go to the documentation of this file.
1<?php
2
27use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
29
35{
36 use Hasher;
37 use ilHelpDisplayed;
38
40 {
41 return $this->context_collection->main();
42 }
43
47 public function getMainBarModification(
48 CalledContexts $screen_context_stack
50 global $DIC;
51
52 if (!$this->showHelpTool()) {
53 return null;
54 }
55
56 $f = $DIC->ui()->factory();
57 $ttm = $DIC->help()->internal()->domain()->tooltips();
58
59 $this->globalScreen()->collector()->mainmenu()->collectOnce();
60 foreach ($this->globalScreen()->collector()->mainmenu()->getRawItems() as $item) {
61 if ($item instanceof isDecorateable) {
62 $p = $item->getProviderIdentification();
63
64 $tt_text = $ttm->getMainMenuTooltip($p->getInternalIdentifier());
65 $tt_text = addslashes(str_replace(array("\n", "\r"), '', $tt_text));
66 if ($tt_text !== "") {
67 //$item->withTopics($DIC->ui()->factory()->helpTopics($p->getInternalIdentifier()));
68 $item->withTopics(...$DIC->ui()->factory()->helpTopics($tt_text));
69 }
70 }
71 }
72
73 return null;
74 }
75}
HTML export view layout provider, hides main and meta bar.
getMainBarModification(CalledContexts $screen_context_stack)
No main bar in HTML exports.
This describes a symbol.
Definition: Symbol.php:30
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
global $DIC
Definition: shib_login.php:26