ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
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
39
class
ilHelpUITextRetriever
implements
ILIAS\UI\HelpTextRetriever
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
}
ILIAS\UI\Help\Topic
This is just a class that marks a string as a help topic.
Definition:
Topic.php:26
ilHelpUITextRetriever
This describes a facility that the UI framework can use to retrieve some help text.
Definition:
class.ilHelpUITextRetriever.php:39
array_map
ILIAS\UI\Help\Purpose
A purpose describes the intended use for a certain help text.
Definition:
Purpose.php:46
ilHelpUITextRetriever\getHelpText
getHelpText(Help\Purpose $purpose, Help\Topic ... $topics)
Definition:
class.ilHelpUITextRetriever.php:41
ILIAS\GlobalScreen\Scope\$topics
array $topics
Definition:
ComponentDecoratorTrait.php:39
$DIC
global $DIC
Definition:
shib_login.php:26
HelpTextRetriever
ILIAS\UI\Help
Definition:
Purpose.php:21
components
ILIAS
Help
classes
class.ilHelpUITextRetriever.php
Generated on Sun Aug 31 2025 23:03:06 for ILIAS by
1.8.13 (using
Doxyfile
)