ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
DecoratedPagePartProvider.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
namespace
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart
;
21
22
use
Closure
;
23
use
ILIAS\UI\Component\Breadcrumbs\Breadcrumbs
;
24
use
ILIAS\UI\Component\Image\Image
;
25
use
ILIAS\UI\Component\Legacy\Legacy
;
26
use
ILIAS\UI\Component\MainControls\Footer
;
27
use
ILIAS\UI\Component\MainControls\MainBar
;
28
use
ILIAS\UI\Component\MainControls\MetaBar
;
29
35
class
DecoratedPagePartProvider
implements
PagePartProvider
36
{
37
public
const
PURPOSE_TITLE
=
'ptitle'
;
38
public
const
PURPOSE_SHORTTITLE
=
'stitle'
;
39
public
const
PURPOSE_VIEWTITLE
=
'vtitle'
;
40
public
const
PURPOSE_LOGO
=
'plogo'
;
41
public
const
PURPOSE_RESPONSIVE_LOGO
=
'prlogo'
;
42
public
const
PURPOSE_FAVICON
=
'pfavicon'
;
43
47
private
$original
;
51
private
$deco
;
55
private
$purpose
;
56
63
public
function
__construct
(
PagePartProvider
$original
,
Closure
$deco
,
string
$purpose
)
64
{
65
$this->original =
$original
;
66
$this->deco =
$deco
;
67
$this->purpose =
$purpose
;
68
}
69
70
private
function
getDecoratedOrOriginal
(
string
$purpose
,
$original
)
71
{
72
if
($this->
isDecorated
($purpose)) {
73
$deco
=
$this->deco
;
74
75
return
$deco
(
$original
);
76
}
77
78
return
$original
;
79
}
80
81
private
function
isDecorated
(
string
$purpose
) : bool
82
{
83
return
$purpose ===
$this->purpose
;
84
}
85
89
public
function
getContent
() : ?
Legacy
90
{
91
return
$this->
getDecoratedOrOriginal
(Legacy::class, $this->original->getContent());
92
}
93
97
public
function
getMetaBar
() : ?
MetaBar
98
{
99
return
$this->
getDecoratedOrOriginal
(MetaBar::class, $this->original->getMetaBar());
100
}
101
105
public
function
getMainBar
() : ?
MainBar
106
{
107
return
$this->
getDecoratedOrOriginal
(MainBar::class, $this->original->getMainBar());
108
}
109
113
public
function
getBreadCrumbs
() : ?
Breadcrumbs
114
{
115
return
$this->
getDecoratedOrOriginal
(Breadcrumbs::class, $this->original->getBreadCrumbs());
116
}
117
121
public
function
getLogo
() : ?
Image
122
{
123
return
$this->
getDecoratedOrOriginal
(self::PURPOSE_LOGO, $this->original->getLogo());
124
}
125
126
127
public
function
getResponsiveLogo
() : ?
Image
128
{
129
return
$this->
getDecoratedOrOriginal
(self::PURPOSE_RESPONSIVE_LOGO, $this->original->getResponsiveLogo());
130
}
131
132
public
function
getFaviconPath
() : string
133
{
134
return
$this->
getDecoratedOrOriginal
(self::PURPOSE_FAVICON, $this->original->getFaviconPath());
135
}
136
140
public
function
getSystemInfos
() : array
141
{
142
return
$this->original->getSystemInfos();
143
}
144
148
public
function
getFooter
() : ?
Footer
149
{
150
return
$this->
getDecoratedOrOriginal
(Footer::class, $this->original->getFooter());
151
}
152
156
public
function
getTitle
() : string
157
{
158
return
$this->
getDecoratedOrOriginal
(self::PURPOSE_TITLE, $this->original->getTitle());
159
}
160
164
public
function
getShortTitle
() : string
165
{
166
return
$this->
getDecoratedOrOriginal
(self::PURPOSE_SHORTTITLE, $this->original->getShortTitle());
167
}
168
172
public
function
getViewTitle
() : string
173
{
174
return
$this->
getDecoratedOrOriginal
(self::PURPOSE_VIEWTITLE, $this->original->getViewTitle());
175
}
176
}
Image
MainBar
ILIAS\UI\Component\MainControls\MainBar
This describes the MainBar.
Definition:
MainBar.php:16
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getFaviconPath
getFaviconPath()
Definition:
DecoratedPagePartProvider.php:132
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\isDecorated
isDecorated(string $purpose)
Definition:
DecoratedPagePartProvider.php:81
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart
Definition:
AbstractOriginalPagePartProvider.php:20
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getBreadCrumbs
getBreadCrumbs()
Definition:
DecoratedPagePartProvider.php:113
ILIAS\UI\Component\Legacy\Legacy
Definition:
Legacy.php:14
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\PURPOSE_RESPONSIVE_LOGO
const PURPOSE_RESPONSIVE_LOGO
Definition:
DecoratedPagePartProvider.php:41
Closure
ILIAS\UI\Component\Image\Image
Definition:
Image.php:17
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\__construct
__construct(PagePartProvider $original, Closure $deco, string $purpose)
DecoratedPagePartProvider constructor.
Definition:
DecoratedPagePartProvider.php:63
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\PagePartProvider
Interface PagePartProvider.
Definition:
PagePartProvider.php:35
ILIAS\UI\Component\Breadcrumbs\Breadcrumbs
Definition:
Breadcrumbs.php:10
Footer
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getDecoratedOrOriginal
getDecoratedOrOriginal(string $purpose, $original)
Definition:
DecoratedPagePartProvider.php:70
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\PURPOSE_TITLE
const PURPOSE_TITLE
Definition:
DecoratedPagePartProvider.php:37
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getTitle
getTitle()
Definition:
DecoratedPagePartProvider.php:156
MetaBar
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getResponsiveLogo
getResponsiveLogo()
Definition:
DecoratedPagePartProvider.php:127
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getSystemInfos
getSystemInfos()
Definition:
DecoratedPagePartProvider.php:140
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\PURPOSE_VIEWTITLE
const PURPOSE_VIEWTITLE
Definition:
DecoratedPagePartProvider.php:39
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getContent
getContent()
Definition:
DecoratedPagePartProvider.php:89
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\$original
$original
Definition:
DecoratedPagePartProvider.php:47
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider
Class DecoratedPagePartProvider.
Definition:
DecoratedPagePartProvider.php:35
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getMetaBar
getMetaBar()
Definition:
DecoratedPagePartProvider.php:97
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\PURPOSE_SHORTTITLE
const PURPOSE_SHORTTITLE
Definition:
DecoratedPagePartProvider.php:38
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\PURPOSE_FAVICON
const PURPOSE_FAVICON
Definition:
DecoratedPagePartProvider.php:42
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getMainBar
getMainBar()
Definition:
DecoratedPagePartProvider.php:105
ILIAS\UI\Component\MainControls\MetaBar
This describes the MetaBar.
Definition:
MetaBar.php:14
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getFooter
getFooter()
Definition:
DecoratedPagePartProvider.php:148
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getShortTitle
getShortTitle()
Definition:
DecoratedPagePartProvider.php:164
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getViewTitle
getViewTitle()
Definition:
DecoratedPagePartProvider.php:172
Breadcrumbs
Legacy
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\$deco
$deco
Definition:
DecoratedPagePartProvider.php:51
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\$purpose
$purpose
Definition:
DecoratedPagePartProvider.php:55
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\PURPOSE_LOGO
const PURPOSE_LOGO
Definition:
DecoratedPagePartProvider.php:40
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getLogo
getLogo()
Definition:
DecoratedPagePartProvider.php:121
ILIAS\UI\Component\MainControls\Footer
This describes the Footer.
Definition:
Footer.php:15
src
GlobalScreen
Scope
Layout
Provider
PagePart
DecoratedPagePartProvider.php
Generated on Wed Apr 9 2025 21:01:53 for ILIAS by
1.8.13 (using
Doxyfile
)