ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
UIServices.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 2016 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
3 
4 namespace ILIAS\DI;
5 
9 class UIServices
10 {
14  protected $container;
15 
16  public function __construct(Container $container)
17  {
18  $this->container = $container;
19  }
20 
26  public function factory()
27  {
28  return $this->container["ui.factory"];
29  }
30 
36  public function renderer()
37  {
38  return $this->container["ui.renderer"];
39  }
40 
46  public function mainTemplate()
47  {
48  return $this->container["tpl"];
49  }
50 }
__construct(Container $container)
Definition: UIServices.php:16
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:15
Class HTTPServicesTest.
Provides fluid interface to RBAC services.
Definition: UIServices.php:9
renderer()
Get a renderer for UI components.
Definition: UIServices.php:36
factory()
Get the factory that crafts UI components.
Definition: UIServices.php:26
mainTemplate()
Get the ILIAS main template.
Definition: UIServices.php:46