ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilHelpUITextRetriever.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 use ILIAS\UI\Help;
22 
40 {
41  public function getHelpText(Help\Purpose $purpose, Help\Topic ...$topics): array
42  {
43  global $DIC;
44 
45  if ($purpose->isTooltip()) {
46  return array_filter(
47  array_map(
48  fn($topic) => $DIC->help()->internal()->domain()->tooltips()->getTooltipPresentationText($topic->get()),
49  $topics
50  )
51  );
52  }
53 
54  return [];
55  }
56 }
This is just a class that marks a string as a help topic.
Definition: Topic.php:26
This describes a facility that the UI framework can use to retrieve some help text.
A purpose describes the intended use for a certain help text.
Definition: Purpose.php:46
getHelpText(Help\Purpose $purpose, Help\Topic ... $topics)
global $DIC
Definition: shib_login.php:26