19declare(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', $this->embedded_application->getToken());
46 $tpl->setVariable(
'TTL', (
string) (time() + $this->embedded_application->getTTL()) * 1000);
48 return $this->ui_factory->legacy()->content($tpl->get());
Builds a Color from either hex- or rgb values.
__construct(private EmbeddedApplication $embedded_application)
A component is the most general form of an entity in the UI.
This is how the factory for UI elements looks.