ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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 ()
 

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)

Definition at line 39 of file FooterProvider.php.

References ILIAS\GlobalScreen\Provider\__construct().

40  {
42  $this->parent_id = (new ilFooterStandardGroupsProvider($dic))->getIdentificationFor(ilFooterStandardGroups::LEGAL_INFORMATION);
43  $this->ldoc = $dic['legalDocuments'];
44  }
__construct(Container $dic, ilPlugin $plugin)
$dic
Definition: result.php:31
+ 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  }

◆ 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.

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

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)
+ 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.

References ILIAS\GlobalScreen\Scope\Footer\Factory\withAction(), and ILIAS\GlobalScreen\Scope\Footer\Factory\withParent().

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

69  : isItem
70  {
71  return $obj instanceof Modal ?
72  $this->item_factory->modal($this->id_factory->identifier($id), $title, $obj)->withParent($this->parent_id) :
73  $this->item_factory->link($this->id_factory->identifier($id), $title)->withAction($obj);
74  }
withAction(URI|Signal|string $action)
withParent(IdentificationInterface $identification)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the call graph for this function:
+ 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: