ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Factory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
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}
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
modeInfo(string $title, URI $close_action)
Definition: Factory.php:60
systemInfo(string $headline, string $information_text)
Definition: Factory.php:65
__construct(SignalGeneratorInterface $signal_generator, Slate\Factory $slate_factory)
Definition: Factory.php:32
This describes the MainBar.
Definition: MainBar.php:34
This describes the MetaBar.
Definition: MetaBar.php:33