ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
LightboxTextPage.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ILIAS\UI\Component as C;
29 
36 {
37  use ComponentHelper;
38 
39  protected string $text;
40  protected string $title;
41 
42  public function __construct(string $text, string $title)
43  {
44  $this->text = $text;
45  $this->title = $title;
46  }
47 
51  public function getTitle(): string
52  {
53  return $this->title;
54  }
55 
59  public function getComponent(): C\Legacy\Content
60  {
61  return new Content($this->text, new SignalGenerator());
62  }
63 }
getTitle()
Get the title of this page, displayed as title in the lightbox modal.
getComponent()
Get the component representing the media item to be displayed in the modals content section...