ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
UIServices.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2016 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4 
5 namespace ILIAS\DI;
6 
7 /******************************************************************************
8  *
9  * This file is part of ILIAS, a powerful learning management system.
10  *
11  * ILIAS is licensed with the GPL-3.0, you should have received a copy
12  * of said license along with the source code.
13  *
14  * If this is not the case or you just want to try ILIAS, you'll find
15  * us at:
16  * https://www.ilias.de
17  * https://github.com/ILIAS-eLearning
18  *
19  *****************************************************************************/
24 {
25  protected Container $container;
26 
27  public function __construct(Container $container)
28  {
29  $this->container = $container;
30  }
31 
35  public function factory(): \ILIAS\UI\Factory
36  {
37  return $this->container["ui.factory"];
38  }
39 
43  public function renderer(): \ILIAS\UI\Renderer
44  {
45  return $this->container["ui.renderer"];
46  }
47 
54  {
55  return $this->container["tpl"];
56  }
57 }
__construct(Container $container)
Definition: UIServices.php:27
Class Factory.
Class ChatMainBarProvider .
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:31
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:23
renderer()
Get a renderer for UI components.
Definition: UIServices.php:43
Container $container
Definition: UIServices.php:25
factory()
Get the factory that crafts UI components.
Definition: UIServices.php:35
mainTemplate()
Get the ILIAS main template.
Definition: UIServices.php:53