ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 ()
 @inheritDoc More...
 
 getMainBarModification (CalledContexts $called_contexts)
 No main bar in HTML exports. 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 (Container $dic)
 @inheritDoc More...
 
 getFullyQualifiedClassName ()
 @inheritDoc More...
 
 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
 $context_collection
 
 $factory
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 $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 16 of file class.ilHelpViewLayoutProvider.php.

Member Function Documentation

◆ getMainBarModification()

ilHelpViewLayoutProvider::getMainBarModification ( CalledContexts  $called_contexts)

No main bar in HTML exports.

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

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

33 {
34 if (!$this->showHelpTool()) {
35 return null;
36 }
37 $this->globalScreen()->collector()->mainmenu()->collectOnce();
38 foreach ($this->globalScreen()->collector()->mainmenu()->getRawItems() as $item) {
39 $p = $item->getProviderIdentification();
40
41 $tt_text = ilHelp::getMainMenuTooltip($p->getInternalIdentifier());
42 $tt_text = addslashes(str_replace(array("\n", "\r"), '', $tt_text));
43
44 if ($tt_text != "") {
45 if ($item instanceof hasSymbol && $item->hasSymbol()) {
46 $item->addSymbolDecorator(static function (Symbol $symbol) use ($tt_text) : Symbol {
47 if ($symbol instanceof JavaScriptBindable) {
48 return $symbol->withAdditionalOnLoadCode(static function ($id) use ($tt_text) : string {
49 return "il.Tooltip.addToNearest('$id', 'button,a', { context:'', my:'bottom center', at:'top center', text:'$tt_text' });";
50 });
51 }
52 return $symbol;
53 });
54 }
55 }
56 }
57
59
60 return null;
61 }
static getMainMenuTooltip($a_item_id)
Get main menu tooltip.
static init()
Initializes the needed tooltip libraries.
Interface hasSymbol Methods for Entries with Symbols.
Definition: hasSymbol.php:12
Interface to be extended by components that have the possibility to bind to Javascript.
withAdditionalOnLoadCode(\Closure $binder)
Add some onload-code to the component instead of replacing the existing one.
This describes a symbol.
Definition: Symbol.php:12

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

+ Here is the call graph for this function:

◆ isInterestedInContexts()

ilHelpViewLayoutProvider::isInterestedInContexts ( )

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