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
StandardPageBuilder.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Scope\Layout\Builder
;
22
23
use
ILIAS\DI\UIServices
;
24
use
ILIAS\GlobalScreen\Scope\Layout\MetaContent\MetaContent
;
25
use
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\PagePartProvider
;
26
use
ILIAS\UI\Component\Layout\Page\Page
;
27
use
ILIAS\UI\Implementation\Component\Layout\Page\Standard
;
28
33
class
StandardPageBuilder
implements
PageBuilder
34
{
38
protected
$ui
;
42
protected
$meta
;
43
47
public
function
__construct
()
48
{
49
global
$DIC
;
50
$this->
ui
= $DIC->ui();
51
$this->meta = $DIC->globalScreen()->layout()->meta();
52
}
53
58
public
function
build
(
PagePartProvider
$parts) :
Page
59
{
60
$meta_bar = $parts->
getMetaBar
();
61
$main_bar = $parts->
getMainBar
();
62
$bread_crumbs = $parts->
getBreadCrumbs
();
63
$header_image = $parts->
getLogo
();
64
$footer = $parts->
getFooter
();
65
$title = $parts->
getTitle
();
66
$short_title = $parts->
getShortTitle
();
67
$view_title = $parts->
getViewTitle
();
68
69
$standard = $this->
ui
->factory()->layout()->page()->standard(
70
[$parts->
getContent
()],
71
$meta_bar,
72
$main_bar,
73
$bread_crumbs,
74
$header_image,
75
$footer,
76
$title,
77
$short_title,
78
$view_title
79
);
80
81
if
(($responsive_logo = $parts->
getResponsiveLogo
()) !== null) {
82
$standard = $standard->withResponsiveLogo($responsive_logo);
83
}
84
85
foreach
($this->meta->getMetaData()->getItems() as $meta_datum) {
86
$standard = $standard->withAdditionalMetaDatum($meta_datum->getKey(), $meta_datum->getValue());
87
}
88
89
return
$standard->withSystemInfos($parts->
getSystemInfos
())
90
->withTextDirection($this->meta->getTextDirection() ?? Standard::LTR);
91
}
92
}
ILIAS\GlobalScreen\Scope\Layout\Builder\StandardPageBuilder\build
build(PagePartProvider $parts)
Definition:
StandardPageBuilder.php:58
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\PagePartProvider\getMainBar
getMainBar()
ILIAS\GlobalScreen\Scope\Layout\Builder
PhpPropertyOnlyWrittenInspection
Definition:
DecoratedPageBuilder.php:21
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\PagePartProvider\getContent
getContent()
ILIAS\GlobalScreen\Scope\Layout\Builder\StandardPageBuilder\$meta
$meta
Definition:
StandardPageBuilder.php:42
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\PagePartProvider\getFooter
getFooter()
UIServices
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\PagePartProvider
Interface PagePartProvider.
Definition:
PagePartProvider.php:35
PagePartProvider
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\PagePartProvider\getResponsiveLogo
getResponsiveLogo()
Page
ILIAS\GlobalScreen\Scope\Layout\Builder\StandardPageBuilder\$ui
$ui
Definition:
StandardPageBuilder.php:38
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\PagePartProvider\getViewTitle
getViewTitle()
$DIC
global $DIC
Definition:
goto.php:24
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\PagePartProvider\getShortTitle
getShortTitle()
ui
ui()
Definition:
ui.php:5
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\PagePartProvider\getSystemInfos
getSystemInfos()
Standard
MetaContent
ILIAS\UI\Component\Layout\Page\Page
This describes the Page.
Definition:
Page.php:13
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\PagePartProvider\getBreadCrumbs
getBreadCrumbs()
ILIAS\GlobalScreen\Scope\Layout\Builder\StandardPageBuilder\__construct
__construct()
StandardPageBuilder constructor.
Definition:
StandardPageBuilder.php:47
ILIAS\GlobalScreen\Scope\Layout\Builder\StandardPageBuilder
Interface PageBuilder.
Definition:
StandardPageBuilder.php:33
ILIAS\GlobalScreen\Scope\Layout\Builder\PageBuilder
Interface PageBuilder.
Definition:
PageBuilder.php:29
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\PagePartProvider\getLogo
getLogo()
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\PagePartProvider\getTitle
getTitle()
ILIAS\GlobalScreen\Scope\Layout\Provider\PagePart\PagePartProvider\getMetaBar
getMetaBar()
src
GlobalScreen
Scope
Layout
Builder
StandardPageBuilder.php
Generated on Wed Apr 9 2025 21:01:53 for ILIAS by
1.8.13 (using
Doxyfile
)