ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\components\WOPI\Embed\Renderer Class Reference
+ Collaboration diagram for ILIAS\components\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\components\WOPI\Embed\Renderer::__construct ( private EmbeddedApplication  $embedded_application)

Definition at line 33 of file Renderer.php.

References $DIC.

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

Member Function Documentation

◆ getComponent()

ILIAS\components\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', (string) $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\components\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: