ILIAS  release_8 Revision v8.19
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
ContextCollection $context_collection
 
ILIAS GlobalScreen Scope Layout Factory ModificationFactory $factory
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
Container $dic
 

Detailed Description

Member Function Documentation

◆ getMemberViewModeInfo()

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

Definition at line 49 of file MemberViewLayoutProvider.php.

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

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

49  : ?ModeInfo
50  {
52  if (!$mv->isActive()) {
53  return null;
54  }
55  $ref_id = $mv->getCurrentRefId();
56  $url = new URI(ilLink::_getLink(
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  }
static _lookupObjId(int $ref_id)
$ref_id
Definition: ltiauth.php:67
language()
Get interface to the i18n service.
Definition: Container.php:86
$url
static _lookupType(int $id, bool $reference=false)
ui()
Get the interface to get services from UI framework.
Definition: Container.php:118
+ 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 73 of file MemberViewLayoutProvider.php.

References $parts.

73  : ?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  }
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
Definition: ltitoken.php:64

◆ isInterestedInContexts()

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

Implements ILIAS\GlobalScreen\ScreenContext\ScreenContextAwareProvider.

Definition at line 44 of file MemberViewLayoutProvider.php.

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

44  : ContextCollection
45  {
46  return $this->context_collection->repository();
47  }
+ Here is the call graph for this function:

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