ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilHelpUITextRetriever Class Reference

This describes a facility that the UI framework can use to retrieve some help text. More...

+ Inheritance diagram for ilHelpUITextRetriever:
+ Collaboration diagram for ilHelpUITextRetriever:

Public Member Functions

 getHelpText (Help\Purpose $purpose, Help\Topic ... $topics)
 
- Public Member Functions inherited from ILIAS\UI\HelpTextRetriever
 getHelpText (Help\Purpose $purpose, Help\Topic ... $topics)
 Try to find according help texts for the purpose an topics. More...
 

Detailed Description

This describes a facility that the UI framework can use to retrieve some help text.

The general idea is, that components can be marked with help topics. During rendering, the UI framework will try to find according help texts via this facility. There neither needs to be a guarantee, that a text exists for a certain topic, nor the guarantee that all texts that can be provided are actually used.

This will allow to move the actual retrieval of help texts out of the components that use the UI framework. Also, it will allow to implement this interface with different strategies. It is especially possible to implement this over the current learning modul mechanism. But it will also be possible to implement alternative mechanisms via plugins.

Definition at line 39 of file class.ilHelpUITextRetriever.php.

Member Function Documentation

◆ getHelpText()

ilHelpUITextRetriever::getHelpText ( Help\Purpose  $purpose,
Help\Topic ...  $topics 
)

Definition at line 41 of file class.ilHelpUITextRetriever.php.

41  : array
42  {
43  if ($purpose->isTooltip()) {
44  return array_filter(
45  array_map(
46  fn($topic) => ilHelp::getTooltipPresentationText($topic->get()),
47  $topics
48  )
49  );
50  }
51 
52  return [];
53  }

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