ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ 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
s
t
w
+
Functions
_
a
b
c
f
g
h
i
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
namespace
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart
;
2
3
use
Closure
;
4
use
ILIAS\UI\Component\Breadcrumbs\Breadcrumbs
;
5
use
ILIAS\UI\Component\Image\Image
;
6
use
ILIAS\UI\Component\Legacy\Legacy
;
7
use
ILIAS\UI\Component\MainControls\Footer
;
8
use
ILIAS\UI\Component\MainControls\MainBar
;
9
use
ILIAS\UI\Component\MainControls\MetaBar
;
10
18
class
DecoratedPagePartProvider
implements
PagePartProvider
19
{
20
const
PURPOSE_TITLE
=
'ptitle'
;
21
const
PURPOSE_SHORTTITLE
=
'stitle'
;
22
const
PURPOSE_VIEWTITLE
=
'vtitle'
;
23
const
PURPOSE_LOGO
=
'plogo'
;
24
const
PURPOSE_RESPONSIVE_LOGO
=
'prlogo'
;
25
29
private
$original
;
33
private
$deco
;
37
private
$purpose
=
''
;
38
39
47
public
function
__construct
(
PagePartProvider
$original
,
Closure
$deco
,
string
$purpose
)
48
{
49
$this->original =
$original
;
50
$this->deco =
$deco
;
51
$this->purpose =
$purpose
;
52
}
53
54
55
private
function
getDecoratedOrOriginal
(
string
$purpose
,
$original
)
56
{
57
if
($this->
isDecorated
($purpose)) {
58
$deco
=
$this->deco
;
59
60
return
$deco
(
$original
);
61
}
62
63
return
$original
;
64
}
65
66
67
private
function
isDecorated
(
string
$purpose
) : bool
68
{
69
return
$purpose ===
$this->purpose
;
70
}
71
72
76
public
function
getContent
() : ?
Legacy
77
{
78
return
$this->
getDecoratedOrOriginal
(Legacy::class, $this->original->getContent());
79
}
80
81
85
public
function
getMetaBar
() : ?
MetaBar
86
{
87
return
$this->
getDecoratedOrOriginal
(MetaBar::class, $this->original->getMetaBar());
88
}
89
90
94
public
function
getMainBar
() : ?
MainBar
95
{
96
return
$this->
getDecoratedOrOriginal
(MainBar::class, $this->original->getMainBar());
97
}
98
99
103
public
function
getBreadCrumbs
() : ?
Breadcrumbs
104
{
105
return
$this->
getDecoratedOrOriginal
(Breadcrumbs::class, $this->original->getBreadCrumbs());
106
}
107
108
112
public
function
getLogo
() : ?
Image
113
{
114
return
$this->
getDecoratedOrOriginal
(self::PURPOSE_LOGO, $this->original->getLogo());
115
}
116
117
118
public
function
getResponsiveLogo
() : ?
Image
119
{
120
return
$this->
getDecoratedOrOriginal
(self::PURPOSE_RESPONSIVE_LOGO, $this->original->getResponsiveLogo());
121
}
122
126
public
function
getFooter
() : ?
Footer
127
{
128
return
$this->
getDecoratedOrOriginal
(Footer::class, $this->original->getFooter());
129
}
130
134
public
function
getTitle
() : string
135
{
136
return
$this->
getDecoratedOrOriginal
(self::PURPOSE_TITLE, $this->original->getTitle());
137
}
138
142
public
function
getShortTitle
() : string
143
{
144
return
$this->
getDecoratedOrOriginal
(self::PURPOSE_SHORTTITLE, $this->original->getShortTitle());
145
}
146
150
public
function
getViewTitle
() : string
151
{
152
return
$this->
getDecoratedOrOriginal
(self::PURPOSE_VIEWTITLE, $this->original->getViewTitle());
153
}
154
}
Image
MainBar
ILIAS\UI\Component\MainControls\MainBar
This describes the MainBar.
Definition:
MainBar.php:15
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\isDecorated
isDecorated(string $purpose)
Definition:
DecoratedPagePartProvider.php:67
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart
Definition:
AbstractOriginalPagePartProvider.php:1
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getBreadCrumbs
getBreadCrumbs()
Definition:
DecoratedPagePartProvider.php:103
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:24
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:47
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\PagePartProvider
Interface PagePartProvider.
Definition:
PagePartProvider.php:15
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:55
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\PURPOSE_TITLE
const PURPOSE_TITLE
Definition:
DecoratedPagePartProvider.php:20
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getTitle
getTitle()
Definition:
DecoratedPagePartProvider.php:134
MetaBar
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getResponsiveLogo
getResponsiveLogo()
Definition:
DecoratedPagePartProvider.php:118
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\PURPOSE_VIEWTITLE
const PURPOSE_VIEWTITLE
Definition:
DecoratedPagePartProvider.php:22
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getContent
getContent()
Definition:
DecoratedPagePartProvider.php:76
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\$original
$original
Definition:
DecoratedPagePartProvider.php:29
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider
Class DecoratedPagePartProvider.
Definition:
DecoratedPagePartProvider.php:18
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getMetaBar
getMetaBar()
Definition:
DecoratedPagePartProvider.php:85
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\PURPOSE_SHORTTITLE
const PURPOSE_SHORTTITLE
Definition:
DecoratedPagePartProvider.php:21
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getMainBar
getMainBar()
Definition:
DecoratedPagePartProvider.php:94
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:126
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getShortTitle
getShortTitle()
Definition:
DecoratedPagePartProvider.php:142
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getViewTitle
getViewTitle()
Definition:
DecoratedPagePartProvider.php:150
Breadcrumbs
Legacy
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\$deco
$deco
Definition:
DecoratedPagePartProvider.php:33
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\$purpose
$purpose
Definition:
DecoratedPagePartProvider.php:37
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\PURPOSE_LOGO
const PURPOSE_LOGO
Definition:
DecoratedPagePartProvider.php:23
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\DecoratedPagePartProvider\getLogo
getLogo()
Definition:
DecoratedPagePartProvider.php:112
ILIAS\UI\Component\MainControls\Footer
This describes the Footer.
Definition:
Footer.php:11
src
GlobalScreen
Scope
Layout
Provider
PagePart
DecoratedPagePartProvider.php
Generated on Wed Apr 9 2025 20:01:38 for ILIAS by
1.8.13 (using
Doxyfile
)