ILIAS  release_8 Revision v8.19
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 
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 
52  public function build(PagePartProvider $parts): Page
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()->getItems() as $meta_datum) {
82  $standard = $standard->withAdditionalMetaDatum($meta_datum->getKey(), $meta_datum->getValue());
83  }
84 
85  return $standard->withSystemInfos($parts->getSystemInfos())
86  ->withTextDirection($this->meta->getTextDirection() ?? Standard::LTR);
87  }
88 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
Definition: ltitoken.php:64
global $DIC
Definition: feed.php:28
Provides fluid interface to RBAC services.
Definition: UIServices.php:23
This describes the Page.
Definition: Page.php:30