ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
MemberViewLayoutProvider.php
Go to the documentation of this file.
1<?php
2
20
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();
56 $url = new URI(ilLink::_getLink(
57 $ref_id,
59 ));
60 $url = $url->withParameter('mv', 0);
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}
factory()
getPageBuilderDecorator(CalledContexts $screen_context_stack)
@inheritDoc
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:35
Settings for members view.
Class ilObject Basic functions for all objects.
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:66
$dic
Definition: ltiresult.php:33
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
Definition: ltitoken.php:61
Class HTTPServicesTest.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
$url
Definition: shib_logout.php:68