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