ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\WOPI\Embed\Renderer Class Reference
+ Collaboration diagram for ILIAS\WOPI\Embed\Renderer:

Public Member Functions

 __construct (private EmbeddedApplication $embedded_application)
 
 getComponent ()
 

Private Attributes

Factory $ui_factory
 

Detailed Description

Author
Fabian Schmid fabia.nosp@m.n@sr.nosp@m..solu.nosp@m.tion.nosp@m.s

Definition at line 29 of file Renderer.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\WOPI\Embed\Renderer::__construct ( private EmbeddedApplication  $embedded_application)

Definition at line 33 of file Renderer.php.

35 {
36 global $DIC;
37 $this->ui_factory = $DIC->ui()->factory();
38 }
global $DIC
Definition: shib_login.php:26

References $DIC.

Member Function Documentation

◆ getComponent()

ILIAS\WOPI\Embed\Renderer::getComponent ( )

Definition at line 40 of file Renderer.php.

40 : Component
41 {
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); // in milliseconds
47
48 return $this->ui_factory->legacy()->content($tpl->get());
49 }

Field Documentation

◆ $ui_factory

Factory ILIAS\WOPI\Embed\Renderer::$ui_factory
private

Definition at line 31 of file Renderer.php.


The documentation for this class was generated from the following file: