ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 34 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 39 of file FooterProvider.php.

40 {
42 $this->parent_id = (new ilFooterStandardGroupsProvider($dic))->getIdentificationFor(ilFooterStandardGroups::LEGAL_INFORMATION);
43 $this->ldoc = $dic['legalDocuments'];
44 }
$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 59 of file FooterProvider.php.

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

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 51 of file FooterProvider.php.

51 : array
52 {
53 return array_map(
54 fn(array $args) => $this->item(...$args),
55 $this->ldoc->modifyFooter($this->collect([]))()
56 );
57 }
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 46 of file FooterProvider.php.

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

◆ item()

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

Definition at line 69 of file FooterProvider.php.

69 : isItem
70 {
71 $id = $this->id_factory->identifier($id);
72 $item = $obj instanceof Modal ?
73 $this->item_factory->modal($id, $title, $obj) :
74 $this->item_factory->link($id, $title)->withAction($obj);
75
76 return $item->withParent($this->parent_id);
77 }
$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 37 of file FooterProvider.php.

◆ $parent_id

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

Definition at line 36 of file FooterProvider.php.


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