ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
LightboxTextPage.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
23 use ILIAS\UI\Component as C;
28 use ILIAS\UI\Component\Modal\LightboxTextPage as ILightboxTextPage;
29 
35 class LightboxTextPage implements LightboxPage, ILightboxTextPage
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\Legacy
60  {
61  return new Legacy($this->text, new SignalGenerator());
62  }
63 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Factory.php:21
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getTitle()
Get the title of this page, displayed as title in the lightbox modal.
A lightbox Text page represents a page displaying a media element, such as text.
getComponent()
Get the component representing the media item to be displayed in the modals content section...