ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
StandardPageBuilder.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28
34{
35 protected UIServices $ui;
36 protected MetaContent $meta;
37
41 public function __construct()
42 {
43 global $DIC;
44 $this->ui = $DIC->ui();
45 $this->meta = $DIC->globalScreen()->layout()->meta();
46 }
47
53 {
54 $meta_bar = $parts->getMetaBar();
55 $main_bar = $parts->getMainBar();
56 $bread_crumbs = $parts->getBreadCrumbs();
57 $header_image = $parts->getLogo();
58 $responsive_header_image = $parts->getResponsiveLogo();
59 $favicon_path = $parts->getFaviconPath();
60 $footer = $parts->getFooter();
61 $title = $parts->getTitle();
62 $short_title = $parts->getShortTitle();
63 $view_title = $parts->getViewTitle();
64 $toast_container = $parts->getToastContainer();
65
66 $standard = $this->ui->factory()->layout()->page()->standard(
67 [$parts->getContent()],
68 $meta_bar,
69 $main_bar,
70 $bread_crumbs,
71 $header_image,
72 $responsive_header_image,
73 $favicon_path,
74 $toast_container,
75 $footer,
76 $title,
77 $short_title,
78 $view_title
79 );
80
81 foreach ($this->meta->getMetaData() as $meta_datum) {
82 $standard = $standard->withAdditionalMetaDatum($meta_datum);
83 }
84
85 if (null !== ($og_meta_data = $this->meta->getOpenGraphMetaData())) {
86 $standard = $standard->withAdditionalMetaDatum($og_meta_data);
87 }
88
89 return $standard->withSystemInfos($parts->getSystemInfos())
90 ->withTextDirection($this->meta->getTextDirection() ?? Standard::LTR);
91 }
92}
Provides fluid interface to RBAC services.
Definition: UIServices.php:25
This describes the Page.
Definition: Page.php:31
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
Definition: ltitoken.php:61
@noinspection PhpPropertyOnlyWrittenInspection
global $DIC
Definition: shib_login.php:26