ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
UIServices.php
Go to the documentation of this file.
1 <?php
2 
19 namespace ILIAS\DI;
20 
25 {
26  protected Container $container;
27 
28  public function __construct(Container $container)
29  {
30  $this->container = $container;
31  }
32 
36  public function factory(): \ILIAS\UI\Factory
37  {
38  return $this->container["ui.factory"];
39  }
40 
44  public function renderer(): \ILIAS\UI\Renderer
45  {
46  return $this->container["ui.renderer"];
47  }
48 
55  {
56  return $this->container["tpl"];
57  }
58 }
__construct(Container $container)
Definition: UIServices.php:28
Interface Observer Contains several chained tasks and infos about them.
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Container.php:19
Provides fluid interface to RBAC services.
Definition: UIServices.php:24
renderer()
Get a renderer for UI components.
Definition: UIServices.php:44
Builds data types.
Definition: Factory.php:35
Container $container
Definition: UIServices.php:26
factory()
Get the factory that crafts UI components.
Definition: UIServices.php:36
mainTemplate()
Get the ILIAS main template.
Definition: UIServices.php:54