ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilHelpViewLayoutProvider.php
Go to the documentation of this file.
1 <?php
2 
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 }
getMainBarModification(CalledContexts $screen_context_stack)
No main bar in HTML exports.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
global $DIC
Definition: shib_login.php:26
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
HTML export view layout provider, hides main and meta bar.