ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Factory.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ILIAS\Data\URI;
26 
27 class Factory implements IMainControls\Factory
28 {
31 
32  public function __construct(
33  SignalGeneratorInterface $signal_generator,
34  Slate\Factory $slate_factory
35  ) {
36  $this->signal_generator = $signal_generator;
37  $this->slate_factory = $slate_factory;
38  }
39 
40  public function metaBar(): MetaBar
41  {
42  return new MetaBar($this->signal_generator);
43  }
44 
45  public function mainBar(): MainBar
46  {
47  return new MainBar($this->signal_generator);
48  }
49 
50  public function slate(): Slate\Factory
51  {
52  return $this->slate_factory;
53  }
54 
55  public function footer(): Footer
56  {
57  return new Footer();
58  }
59 
60  public function modeInfo(string $title, URI $close_action): ModeInfo
61  {
62  return new ModeInfo($title, $close_action);
63  }
64 
65  public function systemInfo(string $headline, string $information_text): SystemInfo
66  {
67  return new SystemInfo(
68  $this->signal_generator,
69  $headline,
70  $information_text
71  );
72  }
73 }
This describes the MainBar.
Definition: MainBar.php:33
modeInfo(string $title, URI $close_action)
description: purpose: > The Mode Info is a section on a page that informs the user that he is in a c...
Definition: Factory.php:60
mainBar()
description: purpose: > The Main Bar allows exploring the content and features of the plattform...
Definition: Factory.php:45
Builds a Color from either hex- or rgb values.
Definition: Factory.php:30
footer()
description: purpose: > The Footer is a unique page section which can be used to accommodate links t...
Definition: Factory.php:55
systemInfo(string $headline, string $information_text)
description: purpose: > The System Info is a section of the standard page that informs the user abou...
Definition: Factory.php:65
__construct(SignalGeneratorInterface $signal_generator, Slate\Factory $slate_factory)
Definition: Factory.php:32
This describes the MetaBar.
Definition: MetaBar.php:32
slate()
description: purpose: > A Slate is a collection of Components that serve a specific and singular pur...
Definition: Factory.php:50
metaBar()
description: purpose: > The Meta Bar is a unique page section to accomodate elements that should per...
Definition: Factory.php:40