ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\UI\Help\TextRetriever\Chaining Class Reference

This HelpTextRetriever merges results from various other retrievers (and removes duplicates). More...

+ Inheritance diagram for ILIAS\UI\Help\TextRetriever\Chaining:
+ Collaboration diagram for ILIAS\UI\Help\TextRetriever\Chaining:

Public Member Functions

 __construct (HelpTextRetriever ... $retrievers)
 
 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...
 

Protected Attributes

array $retrievers
 

Detailed Description

This HelpTextRetriever merges results from various other retrievers (and removes duplicates).

Definition at line 30 of file Chaining.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\UI\Help\TextRetriever\Chaining::__construct ( HelpTextRetriever ...  $retrievers)

Definition at line 35 of file Chaining.php.

37 {
38 $this->retrievers = $retrievers;
39 }

References ILIAS\UI\Help\TextRetriever\Chaining\$retrievers.

Member Function Documentation

◆ getHelpText()

ILIAS\UI\Help\TextRetriever\Chaining::getHelpText ( Help\Purpose  $purpose,
Help\Topic ...  $topics 
)

Definition at line 41 of file Chaining.php.

41 : array
42 {
43 return array_unique(
44 array_merge(
45 ...array_map(
46 fn ($r) => $r->getHelpText($purpose, ...$topics),
47 $this->retrievers
48 )
49 )
50 );
51 }

Field Documentation

◆ $retrievers

array ILIAS\UI\Help\TextRetriever\Chaining::$retrievers
protected

Definition at line 33 of file Chaining.php.

Referenced by ILIAS\UI\Help\TextRetriever\Chaining\__construct().


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