ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
Echoing.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Help\TextRetriever
;
22
23
use
ILIAS\UI\HelpTextRetriever
;
24
use
ILIAS\UI\Help
;
25
30
class
Echoing
implements
HelpTextRetriever
31
{
32
public
function
getHelpText
(Help\
Purpose
$purpose, Help\
Topic
...
$topics
): array
33
{
34
if
($purpose->isTooltip()) {
35
$purpose =
"tooltip"
;
36
}
else
{
37
throw
new \LogicException(
"Unknown purpose."
);
38
}
39
40
return
array_map
(
41
fn ($t) => $purpose .
": "
. $t->get(),
42
$topics
43
);
44
}
45
}
ILIAS\UI\Help\Topic
This is just a class that marks a string as a help topic.
Definition:
Topic.php:26
ILIAS\UI\Help\TextRetriever
Definition:
Chaining.php:21
array_map
ILIAS\UI\Help\TextRetriever\Echoing\getHelpText
getHelpText(Help\Purpose $purpose, Help\Topic ... $topics)
Definition:
Echoing.php:32
ILIAS\UI\Help\TextRetriever\Echoing
This HelpTextRetriever simply echo the purpose and the topics for debugging and development purpose...
Definition:
Echoing.php:30
ILIAS\UI\Help\Purpose
A purpose describes the intended use for a certain help text.
Definition:
Purpose.php:46
ILIAS\UI\HelpTextRetriever
This describes a facility that the UI framework can use to retrieve some help text.
Definition:
HelpTextRetriever.php:39
ILIAS\GlobalScreen\Scope\$topics
array $topics
Definition:
ComponentDecoratorTrait.php:39
HelpTextRetriever
ILIAS\UI\Help
Definition:
Purpose.php:21
components
ILIAS
UI
src
Help
TextRetriever
Echoing.php
Generated on Wed Sep 3 2025 23:04:17 for ILIAS by
1.8.13 (using
Doxyfile
)