ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
ILIAS\LegalDocuments\GlobalScreen\FooterProvider Class Reference
+ Inheritance diagram for ILIAS\LegalDocuments\GlobalScreen\FooterProvider:
+ Collaboration diagram for ILIAS\LegalDocuments\GlobalScreen\FooterProvider:

Public Member Functions

 __construct (Container $dic)
 
 getGroups ()
 
 getEntries ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\MetaBar\Provider\AbstractStaticFooterProvider
 __construct (Container $dic)
 
 getAdditionalTexts ()
 
 getPermanentURI ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (protected Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
 getGroups ()
 
 getEntries ()
 
 getAdditionalTexts ()
 
 getPermanentURI ()
 

Private Member Functions

 collect (array $items)
 
 item (string $id, string $title, ?object $obj)
 

Private Attributes

readonly Id $parent_id
 
readonly Conductor $ldoc
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\MetaBar\Provider\AbstractStaticFooterProvider
IdentificationProviderInterface $id_factory
 
FooterItemFactory $item_factory
 

Detailed Description

Definition at line 35 of file FooterProvider.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\LegalDocuments\GlobalScreen\FooterProvider::__construct ( Container  $dic)

Reimplemented from ILIAS\GlobalScreen\Scope\MetaBar\Provider\AbstractStaticFooterProvider.

Definition at line 40 of file FooterProvider.php.

41 {
43 $this->parent_id = (new ilFooterStandardGroupsProvider($dic))->getIdentificationFor(ilFooterStandardGroups::LEGAL_INFORMATION);
44 $this->ldoc = $dic['legalDocuments'];
45 }
$dic
Definition: ltiresult.php:33
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $dic, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ collect()

ILIAS\LegalDocuments\GlobalScreen\FooterProvider::collect ( array  $items)
private

Definition at line 60 of file FooterProvider.php.

60 : Closure
61 {
62 return function (...$args) use ($items) {
63 if ($args === []) {
64 return $items;
65 }
66 return $this->collect(array_merge($items, [$args]));
67 };
68 }

References ILIAS\LegalDocuments\GlobalScreen\FooterProvider\collect().

Referenced by ILIAS\LegalDocuments\GlobalScreen\FooterProvider\collect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEntries()

ILIAS\LegalDocuments\GlobalScreen\FooterProvider::getEntries ( )
Returns
isItem[] These are Entries which will be available for configuration.

Implements ILIAS\GlobalScreen\Scope\Footer\Provider\StaticFooterProvider.

Definition at line 52 of file FooterProvider.php.

52 : array
53 {
54 return array_map(
55 fn(array $args) => $this->item(...$args),
56 $this->ldoc->modifyFooter($this->collect([]))()
57 );
58 }
item(string $id, string $title, ?object $obj)

References ILIAS\LegalDocuments\GlobalScreen\FooterProvider\item().

+ Here is the call graph for this function:

◆ getGroups()

ILIAS\LegalDocuments\GlobalScreen\FooterProvider::getGroups ( )
Returns
TopParentItem[] These are Slates which will be available for configuration.

Implements ILIAS\GlobalScreen\Scope\Footer\Provider\StaticFooterProvider.

Definition at line 47 of file FooterProvider.php.

47 : array
48 {
49 return [];
50 }

◆ item()

ILIAS\LegalDocuments\GlobalScreen\FooterProvider::item ( string  $id,
string  $title,
?object  $obj 
)
private

Definition at line 70 of file FooterProvider.php.

70 : isItem
71 {
72 $false = fn() => false;
73 $id = $this->id_factory->identifier($id);
74
75 $item = match (true) {
76 $obj === null => $this->item_factory->link($id, $title)
77 ->withAction(new URI(ILIAS_HTTP_PATH))
78 ->withAvailableCallable($false)
79 ->withVisibilityCallable($false),
80 $obj instanceof Modal => $this->item_factory->modal($id, $title, $obj),
81 default => $this->item_factory->link($id, $title)->withAction($obj),
82 };
83
84 return $item->withParent($this->parent_id);
85 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References $id.

Referenced by ILIAS\LegalDocuments\GlobalScreen\FooterProvider\getEntries().

+ Here is the caller graph for this function:

Field Documentation

◆ $ldoc

readonly Conductor ILIAS\LegalDocuments\GlobalScreen\FooterProvider::$ldoc
private

Definition at line 38 of file FooterProvider.php.

◆ $parent_id

readonly Id ILIAS\LegalDocuments\GlobalScreen\FooterProvider::$parent_id
private

Definition at line 37 of file FooterProvider.php.


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