ILIAS  release_8 Revision v8.24
MemberViewLayoutProvider.php
Go to the documentation of this file.
1<?php
2
4
30use ilLink;
32use ilObject;
33
40{
45 {
46 return $this->context_collection->repository();
47 }
48
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)
@inheritDoc
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:32
language()
Get interface to the i18n service.
Definition: Container.php:86
ui()
Get the interface to get services from UI framework.
Definition: Container.php:118
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
Settings for members view.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupType(int $id, bool $reference=false)
static _lookupObjId(int $ref_id)
This describes the Page.
Definition: Page.php:31
$ref_id
Definition: ltiauth.php:67
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
Definition: ltitoken.php:64
Class HTTPServicesTest.
Class ChatMainBarProvider \MainMenu\Provider.
$url