ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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
 
DataFactory $data
 
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, 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(
57  ilLink::_getLink(
58  $ref_id,
60  )
61  );
62  $url = $url->withParameter('mv', 0);
63 
64  $modeinfo = $dic->ui()->factory()->mainControls()->modeInfo(
65  $dic->language()->txt('mem_view_long'),
66  $url
67  );
68 
69  return $modeinfo;
70  }
static _lookupObjId(int $ref_id)
$ref_id
Definition: ltiauth.php:67
language()
Get interface to the i18n service.
Definition: Container.php:95
$url
Definition: ltiregstart.php:35
static _lookupType(int $id, bool $reference=false)
ui()
Get the interface to get services from UI framework.
Definition: Container.php:127
+ 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 75 of file MemberViewLayoutProvider.php.

References $parts.

75  : ?PageBuilderModification
76  {
77  $mv_mode_info = self::getMemberViewModeInfo($this->dic);
78  if (is_null($mv_mode_info)) {
79  return null;
80  }
81 
82  return $this->factory->page()
83  ->withLowPriority()
84  ->withModification(
85  static function (PagePartProvider $parts) use ($mv_mode_info): Page {
86  $p = new StandardPageBuilder();
87  $page = $p->build($parts);
88  return $page->withModeInfo($mv_mode_info);
89  }
90  );
91  }
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: