ILIAS  release_7 Revision v7.30-3-g800a261c036
MemberViewLayoutProvider.php
Go to the documentation of this file.
2
14use ilLink;
16use ilObject;
17
24{
29 {
30 return $this->context_collection->repository();
31 }
32
33 public static function getMemberViewModeInfo(\ILIAS\DI\Container $dic) : ?Modeinfo
34 {
36 if (!$mv->isActive()) {
37 return null;
38 }
39 $ref_id = $mv->getCurrentRefId();
41 $ref_id,
43 array('mv' => 0)
44 ));
45
46 $modeinfo = $dic->ui()->factory()->mainControls()->modeInfo(
47 $dic->language()->txt('mem_view_long'),
48 $url
49 );
50
51 return $modeinfo;
52 }
53
57 public function getPageBuilderDecorator(CalledContexts $screen_context_stack) : ?PageBuilderModification
58 {
59 $mv_mode_info = self::getMemberViewModeInfo($this->dic);
60 if (is_null($mv_mode_info)) {
61 return null;
62 }
63
64 return $this->factory->page()
65 ->withLowPriority()
66 ->withModification(
67 function (PagePartProvider $parts) use ($mv_mode_info) : Page {
68 $p = new StandardPageBuilder();
69 $page = $p->build($parts);
70 return $page->withModeInfo($mv_mode_info);
71 }
72 );
73 }
74}
An exception for terminatinating execution or to throw for unit testing.
getPageBuilderDecorator(CalledContexts $screen_context_stack)
@inheritDoc
The scope of this class is split ilias-conform URI's into components.
Definition: URI.php:18
@classDescription Settings for members view
Class ilObject Basic functions for all objects.
static _lookupObjId($a_id)
static _lookupType($a_id, $a_reference=false)
lookup object type
This describes a standard button.
Definition: Standard.php:13
This describes the Page.
Definition: Page.php:14
Class HTTPServicesTest.
Class ChatMainBarProvider \MainMenu\Provider.
$url