ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Container\Screen\MemberViewLayoutProvider Class Reference

Class MemberViewLayoutProvider. More...

+ Inheritance diagram for ILIAS\Container\Screen\MemberViewLayoutProvider:
+ Collaboration diagram for ILIAS\Container\Screen\MemberViewLayoutProvider:

Public Member Functions

 isInterestedInContexts ()
 
 getPageBuilderDecorator (CalledContexts $screen_context_stack)
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
 __construct (Container $dic)
 
 getContentModification (CalledContexts $screen_context_stack)
 
 getLogoModification (CalledContexts $screen_context_stack)
 
 getResponsiveLogoModification (CalledContexts $screen_context_stack)
 
 getMainBarModification (CalledContexts $screen_context_stack)
 
 getMetaBarModification (CalledContexts $screen_context_stack)
 
 getBreadCrumbsModification (CalledContexts $screen_context_stack)
 
 getFooterModification (CalledContexts $screen_context_stack)
 
 getPageBuilderDecorator (CalledContexts $screen_context_stack)
 
 getTitleModification (CalledContexts $screen_context_stack)
 
 getShortTitleModification (CalledContexts $screen_context_stack)
 
 getViewTitleModification (CalledContexts $screen_context_stack)
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 

Static Public Member Functions

static getMemberViewModeInfo (\ILIAS\DI\Container $dic)
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
 $context_collection
 
 $factory
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 $dic
 

Detailed Description

Member Function Documentation

◆ getMemberViewModeInfo()

static ILIAS\Container\Screen\MemberViewLayoutProvider::getMemberViewModeInfo ( \ILIAS\DI\Container  $dic)
static

Definition at line 33 of file MemberViewLayoutProvider.php.

References $url, ilLink\_getLink(), ilObject\_lookupObjId(), ilObject\_lookupType(), and ilMemberViewSettings\getInstance().

Referenced by ILIAS\LTI\Screen\LtiViewLayoutProvider\getPageBuilderDecorator().

33  : ?Modeinfo
34  {
36  if (!$mv->isActive()) {
37  return null;
38  }
39  $ref_id = $mv->getCurrentRefId();
40  $url = new URI(ilLink::_getLink(
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  }
static _lookupObjId($a_id)
static _lookupType($a_id, $a_reference=false)
lookup object type
$url
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPageBuilderDecorator()

ILIAS\Container\Screen\MemberViewLayoutProvider::getPageBuilderDecorator ( CalledContexts  $screen_context_stack)

Implements ILIAS\GlobalScreen\Scope\Layout\Provider\ModificationProvider.

Definition at line 57 of file MemberViewLayoutProvider.php.

57  : ?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  }

◆ isInterestedInContexts()

ILIAS\Container\Screen\MemberViewLayoutProvider::isInterestedInContexts ( )

Implements ILIAS\GlobalScreen\ScreenContext\ScreenContextAwareProvider.

Definition at line 28 of file MemberViewLayoutProvider.php.

References ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection\repository().

28  : ContextCollection
29  {
30  return $this->context_collection->repository();
31  }
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: