ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
MemberViewLayoutProvider.php
Go to the documentation of this file.
1 <?php
2 
4 
21 use ILIAS\Data\URI;
30 use ilLink;
32 use ilObject;
33 
40 {
45  {
46  return $this->context_collection->repository();
47  }
48 
49  public static function getMemberViewModeInfo(\ILIAS\DI\Container $dic): ?ModeInfo
50  {
52  if (!$mv->isActive()) {
53  return null;
54  }
55  $ref_id = $mv->getCurrentRefId();
57  $ref_id,
59  ['mv' => 0]
60  ));
61 
62  $modeinfo = $dic->ui()->factory()->mainControls()->modeInfo(
63  $dic->language()->txt('mem_view_long'),
64  $url
65  );
66 
67  return $modeinfo;
68  }
69 
73  public function getPageBuilderDecorator(CalledContexts $screen_context_stack): ?PageBuilderModification
74  {
75  $mv_mode_info = self::getMemberViewModeInfo($this->dic);
76  if (is_null($mv_mode_info)) {
77  return null;
78  }
79 
80  return $this->factory->page()
81  ->withLowPriority()
82  ->withModification(
83  static function (PagePartProvider $parts) use ($mv_mode_info): Page {
84  $p = new StandardPageBuilder();
85  $page = $p->build($parts);
86  return $page->withModeInfo($mv_mode_info);
87  }
88  );
89  }
90 }
getPageBuilderDecorator(CalledContexts $screen_context_stack)
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
Definition: ltitoken.php:64
Class ChatMainBarProvider .
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:31
static _lookupObjId(int $ref_id)
$ref_id
Definition: ltiauth.php:67
Class HTTPServicesTest.
The scope of this class is split ilias-conform URI&#39;s into components.
Definition: URI.php:34
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This describes the Page.
Definition: Page.php:30
$url
static _lookupType(int $id, bool $reference=false)