3 declare(strict_types=1);
50 return $this->context_collection->
lti();
60 $this->
globalScreen()->layout()->meta()->addCss(
'./Services/LTI/templates/default/lti.css');
62 $external_css = ($is_exit_mode) ?
'' : $this->dic[
"lti"]->getExternalCss();
63 if ($external_css !==
'') {
64 $this->
globalScreen()->layout()->meta()->addCss($external_css);
67 return $this->factory->page()
71 $page = $p->build($parts);
75 $page = $page->withModeInfo($mv_modeinfo);
78 return $page->withNoFooter();
81 ->withPriority(self::MODIFICATION_PRIORITY);
86 $data_collection = $screen_context_stack->
current()->getAdditionalData();
87 $is_exit_mode = $data_collection->is(self::GS_EXIT_LTI,
true);
98 return $this->
globalScreen()->layout()->factory()->mainbar()
106 foreach ($tools as
$id => $entry) {
113 ->withPriority(self::MODIFICATION_PRIORITY);
123 return $this->
globalScreen()->layout()->factory()->metabar()
125 function (?
MetaBar $metabar) use ($is_exit_mode, $screen_context_stack): ?Metabar {
130 $f = $this->dic->ui()->factory();
131 $exit_symbol =
$f->symbol()->glyph()->close();
132 $exit_txt = $this->dic[
'lti']->lng->txt(
'lti_exit');
133 $exit =
$f->button()->bulky($exit_symbol, $exit_txt, $this->dic[
"lti"]->getCmdLink(
'exit'));
138 ->withPriority(self::MODIFICATION_PRIORITY);
149 return $this->
globalScreen()->layout()->factory()->title()
151 function (?
string $content) use ($is_exit_mode):
string {
153 return $this->dic[
"lti"]->getTitleForExitPage();
155 return $this->dic[
"lti"]->getTitle();
158 ->withPriority(self::MODIFICATION_PRIORITY);
withAdditionalToolEntry(string $id, Slate\Slate $entry, bool $initially_hidden=false, Button\Close $close_button=null)
Append a tool-entry.
This describes the MainBar.
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
withClearedEntries()
Get a copy of this MetaBar without any entries.
withAdditionalEntry(string $id, $entry)
Append an entry.
Class PageBuilderModification.
Interface PagePartProvider.
getTitleModification(CalledContexts $screen_context_stack)
Class LtiViewLayoutProvider.
getMetaBarModification(CalledContexts $screen_context_stack)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class AbstractModificationProvider.
withClearedEntries()
Get a copy of this MainBar without any entries.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getMemberViewModeInfo(\ILIAS\DI\Container $dic)
const MODIFICATION_PRIORITY
This describes the MetaBar.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
isLTIExitMode(CalledContexts $screen_context_stack)
getPageBuilderDecorator(CalledContexts $screen_context_stack)
Interface ModificationProvider.
getMainBarModification(CalledContexts $screen_context_stack)