ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
FlexibleModal.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24use ILIAS\UI\Component\Signal as Signal;
25
27{
28 protected ?Modal $modal = null;
30
31 public function __construct(Modal|string $modal_or_link)
32 {
33 if (is_string($modal_or_link)) {
34 $this->flexible_signal = new FlexibleSignal(
35 $modal_or_link
36 );
37 } else {
38 $this->modal = $modal_or_link;
39 $this->flexible_signal = new FlexibleSignal(
40 $this->modal->getShowSignal()
41 );
42 }
43 }
44
45 public function getModal(): ?Modal
46 {
47 return $this->modal;
48 }
49
51 {
53 }
54}
This describes commonalities between the different modals.
Definition: Modal.php:35
modal(string $title="", string $cancel_label="")