51 $data_collection = $screen_context_stack->
current()->getAdditionalData();
52 $is_exit_mode = $data_collection->is(self::GS_EXIT_LTI,
true);
58 return $this->context_collection->
lti();
66 $this->
globalScreen()->layout()->meta()->addCss(
'./Services/LTI/templates/default/lti.css');
68 $external_css = ($is_exit_mode) ?
'' : $this->dic[
"lti"]->getExternalCss();
69 if ($external_css !==
'') {
70 $this->
globalScreen()->layout()->meta()->addCss($external_css);
73 return $this->factory->page()
77 $page = $p->build($parts);
81 $page = $page->withModeInfo($mv_modeinfo);
84 return $page->withNoFooter();
97 return $this->
globalScreen()->layout()->factory()->mainbar()
100 if ($mainbar === null) {
108 foreach ($tools as $id => $entry) {
115 ->withHighPriority();
125 return $this->
globalScreen()->layout()->factory()->metabar()
127 function (?
MetaBar $metabar) use ($is_exit_mode, $screen_context_stack) : ?Metabar {
128 if ($metabar === null) {
135 $f = $this->dic->ui()->factory();
136 $exit_symbol =
$f->symbol()->glyph()->close();
137 $exit_txt = $this->dic[
'lti']->lng->txt(
'lti_exit');
138 $exit =
$f->button()->bulky($exit_symbol, $exit_txt, $this->dic[
"lti"]->getCmdLink(
'exit'));
143 ->withHighPriority();
153 return $this->
globalScreen()->layout()->factory()->title()
155 function (?
string $content) use ($is_exit_mode) : ?
string {
157 return $this->dic[
"lti"]->getTitleForExitPage();
159 return $this->dic[
"lti"]->getTitle();
162 ->withHighPriority();
withAdditionalToolEntry(string $id, Slate\Slate $entry, bool $initially_hidden=false, Button\Close $close_button=null)
Append a tool-entry.
This describes the MainBar.
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)
This describes the MetaBar.
isLTIExitMode(CalledContexts $screen_context_stack)
getPageBuilderDecorator(CalledContexts $screen_context_stack)
Interface ModificationProvider.
getMainBarModification(CalledContexts $screen_context_stack)