ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
 __construct (Container $dic)
 
 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)
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 

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
 
ILIAS GlobalScreen Scope Layout Factory ModificationFactory $factory
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
Container $dic
 

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 33 of file class.ilHelpViewLayoutProvider.php.

Member Function Documentation

◆ getMainBarModification()

ilHelpViewLayoutProvider::getMainBarModification ( CalledContexts  $screen_context_stack)

No main bar in HTML exports.

Implements ILIAS\GlobalScreen\Scope\Layout\Provider\ModificationProvider.

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

References $id, ilHelp\getMainMenuTooltip(), ILIAS\GlobalScreen\Provider\AbstractProvider\globalScreen(), ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol\hasSymbol(), ilTooltipGUI\init(), and ILIAS\UI\Component\JavaScriptBindable\withAdditionalOnLoadCode().

49  if (!$this->showHelpTool()) {
50  return null;
51  }
52  $this->globalScreen()->collector()->mainmenu()->collectOnce();
53  foreach ($this->globalScreen()->collector()->mainmenu()->getRawItems() as $item) {
54  $p = $item->getProviderIdentification();
55 
56  $tt_text = ilHelp::getMainMenuTooltip($p->getInternalIdentifier());
57  $tt_text = addslashes(str_replace(array("\n", "\r"), '', $tt_text));
58 
59  if ($tt_text !== "" && $item instanceof hasSymbol && $item->hasSymbol()) {
60  $item->addSymbolDecorator(static function (Symbol $symbol) use ($tt_text): Symbol {
61  return $symbol->withAdditionalOnLoadCode(static function ($id) use ($tt_text): string {
62  return "il.Tooltip.addToNearest('$id', 'button,a', { context:'', my:'bottom center', at:'top center', text:'$tt_text' });";
63  });
64  });
65  }
66  }
67 
69 
70  return null;
71  }
This describes a symbol.
Definition: Symbol.php:29
static init()
Initializes the needed tooltip libraries.
Interface hasSymbol Methods for Entries with Symbols.
Definition: hasSymbol.php:32
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
withAdditionalOnLoadCode(Closure $binder)
Add some onload-code to the component instead of replacing the existing one.
static getMainMenuTooltip(string $a_item_id)
+ Here is the call graph for this function:

◆ isInterestedInContexts()

ilHelpViewLayoutProvider::isInterestedInContexts ( )

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