ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
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 (protected 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
 
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 34 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 47 of file class.ilHelpViewLayoutProvider.php.

References $DIC, Vendor\Package\$f, ILIAS\GlobalScreen\Provider\AbstractProvider\globalScreen(), and null.

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  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
global $DIC
Definition: shib_login.php:26
+ Here is the call graph for this function:

◆ isInterestedInContexts()

ilHelpViewLayoutProvider::isInterestedInContexts ( )

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