19declare(strict_types=1);
51 return $this->context_collection->
lti();
61 $this->
globalScreen()->layout()->meta()->addCss(
'./components/ILIAS/LTIProvider/templates/default/lti.css');
63 $external_css = ($is_exit_mode) ?
'' : $this->dic[
"lti"]->getExternalCss();
64 if ($external_css !==
'') {
65 $this->
globalScreen()->layout()->meta()->addCss($external_css);
73 $page = $p->build($customParts);
76 $page = $page->withModeInfo($mv_modeinfo);
78 return $page->withNoFooter();
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) {
112 )->withPriority(self::LTI_PRIORITY);
122 return $this->
globalScreen()->layout()->factory()->metabar()
124 function (?
MetaBar $metabar) use ($is_exit_mode, $screen_context_stack): ?Metabar {
130 $exit_symbol =
$f->symbol()->glyph()->
close();
131 $exit_txt = $this->dic[
'lti']->lng->txt(
'lti_exit');
132 $exit =
$f->button()->
bulky($exit_symbol, $exit_txt, $this->dic[
"lti"]->getCmdLink(
'exit'));
136 )->withPriority(self::LTI_PRIORITY);
147 return $this->
globalScreen()->layout()->factory()->title()
149 function (?
string $content) use ($is_exit_mode):
string {
151 return $this->dic[
"lti"]->getTitleForExitPage();
153 return $this->dic[
"lti"]->getTitle();
155 )->withPriority(self::LTI_PRIORITY);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Class MemberViewLayoutProvider.
static getMemberViewModeInfo(\ILIAS\DI\Container $dic)
Class PageBuilderModification.
Class AbstractModificationProvider.
Class LtiViewLayoutProvider.
getMainBarModification(CalledContexts $screen_context_stack)
@inheritDoc
getTitleModification(CalledContexts $screen_context_stack)
getPageBuilderDecorator(CalledContexts $screen_context_stack)
isLTIExitMode(CalledContexts $screen_context_stack)
getMetaBarModification(CalledContexts $screen_context_stack)
@inheritDoc
Interface ModificationProvider.
Interface PagePartProvider.
This describes the MainBar.
withClearedEntries()
Get a copy of this MainBar without any entries.
withAdditionalToolEntry(string $id, Slate\Slate $entry, bool $initially_hidden=false, ?Button\Close $close_button=null)
Append a tool-entry.
This describes the MetaBar.
withClearedEntries()
Get a copy of this MetaBar without any entries.
withAdditionalEntry(string $id, $entry)
Append an entry.
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts