19 declare(strict_types=1);
37 $this->ui_factory = $DIC->ui()->factory();
42 $tpl = new \ilTemplate(
'tpl.wopi_container.html',
true,
true,
'components/ILIAS/WOPI');
43 $tpl->setVariable(
'EDITOR_URL', (
string) $this->embedded_application->getActionLauncherURL());
44 $tpl->setVariable(
'INLINE', (
string) (
int) $this->embedded_application->isInline());
45 $tpl->setVariable(
'TOKEN', (
string) $this->embedded_application->getToken());
46 $tpl->setVariable(
'TTL', (
string) (time() + $this->embedded_application->getTTL()) * 1000);
48 return $this->ui_factory->legacy()->content($tpl->get());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This is how the factory for UI elements looks.
__construct(private EmbeddedApplication $embedded_application)