ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
LightboxTextPage.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
namespace
ILIAS\UI\Implementation\Component\Modal
;
5
6
use
ILIAS\UI\Component\Modal\LightboxPage
;
7
use
ILIAS\UI\Implementation\Component\ComponentHelper
;
8
use
ILIAS\UI\Implementation\Component\Legacy\Legacy
;
9
15
class
LightboxTextPage
implements
LightboxPage
16
{
17
use
ComponentHelper
;
18
20
protected
$text
=
''
;
21
23
protected
$title
=
''
;
24
29
public
function
__construct
(
string
$text
,
string
$title
)
30
{
31
$this->
checkStringArg
(
'text'
, $text);
32
$this->
checkStringArg
(
'title'
, $title);
33
$this->text =
$text
;
34
$this->title =
$title
;
35
}
36
37
41
public
function
getTitle
()
42
{
43
return
$this->title
;
44
}
45
49
public
function
getComponent
()
50
{
51
return
new
Legacy
($this->text);
52
}
53
}
ILIAS\UI\Implementation\Component\Modal
Definition:
Factory.php:2
ILIAS\UI\Implementation\Component\ComponentHelper
trait ComponentHelper
Provides common functionality for component implementations.
Definition:
ComponentHelper.php:13
ILIAS\UI\Implementation\Component\Modal\LightboxTextPage\getTitle
getTitle()
Get the title of this page, displayed as title in the lightbox modal.string
Definition:
LightboxTextPage.php:41
ILIAS\UI\Implementation\Component\checkStringArg
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
Definition:
ComponentHelper.php:92
LightboxPage
ILIAS\UI\Implementation\Component\Modal\LightboxTextPage\$text
$text
Definition:
LightboxTextPage.php:20
ILIAS\UI\Implementation\Component\Modal\LightboxTextPage\__construct
__construct(string $text, string $title)
Definition:
LightboxTextPage.php:29
ILIAS\UI\Implementation\Component\Modal\LightboxTextPage
Definition:
LightboxTextPage.php:15
ILIAS\UI\Implementation\Component\Modal\LightboxTextPage\$title
$title
Definition:
LightboxTextPage.php:23
ILIAS\UI\Implementation\Component\Modal\LightboxTextPage\getComponent
getComponent()
Get the component representing the media item to be displayed in the modals content section...
Definition:
LightboxTextPage.php:49
Legacy
ILIAS\UI\Implementation\Component\Legacy\Legacy
Definition:
Legacy.php:14
php
ILIAS\UI\Component\Modal\LightboxPage
Interface LightboxPage.
Definition:
LightboxPage.php:12
src
UI
Implementation
Component
Modal
LightboxTextPage.php
Generated on Thu Jan 30 2025 19:02:12 for ILIAS by
1.8.13 (using
Doxyfile
)