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
31
32class Factory implements M\Factory
33{
34 public function __construct(
35 protected SignalGeneratorInterface $signal_generator,
36 protected InterruptiveItem\Factory $item_factory,
37 protected FieldFactory $field_factory,
38 ) {
39 }
40
41 public function interruptive(string $title, string $message, string $form_action): Interruptive
42 {
43 return new Interruptive($title, $message, $form_action, $this->signal_generator);
44 }
45
47 {
48 return $this->item_factory;
49 }
50
51 public function roundtrip(string $title, Component\Component|array|null $content, array $inputs = [], ?string $post_url = null): RoundTrip
52 {
53 return new RoundTrip(
54 $this->signal_generator,
55 $this->field_factory,
57 $title,
58 $content,
59 $inputs,
60 $post_url
61 );
62 }
63
64 public function lightbox($pages): Lightbox
65 {
66 return new Lightbox($pages, $this->signal_generator);
67 }
68
69 public function lightboxImagePage(Image $image, string $title, string $description = ''): LightboxImagePage
70 {
71 return new LightboxImagePage($image, $title, $description);
72 }
73
74 public function lightboxTextPage(string $text, string $title): LightboxTextPage
75 {
76 return new LightboxTextPage($text, $title);
77 }
78
79 public function lightboxCardPage(Card $card): LightboxCardPage
80 {
81 return new LightboxCardPage($card);
82 }
83}
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
Factory for Date Formats.
Definition: Factory.php:27
FormInputNameSource is responsible for generating continuous form input names.
roundtrip(string $title, Component\Component|array|null $content, array $inputs=[], ?string $post_url=null)
Definition: Factory.php:51
lightboxTextPage(string $text, string $title)
Definition: Factory.php:74
interruptive(string $title, string $message, string $form_action)
Definition: Factory.php:41
__construct(protected SignalGeneratorInterface $signal_generator, protected InterruptiveItem\Factory $item_factory, protected FieldFactory $field_factory,)
Definition: Factory.php:34
lightboxImagePage(Image $image, string $title, string $description='')
Definition: Factory.php:69
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Factory.php:21
$message
Definition: xapiexit.php:31