ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 {
13  protected $container;
14 
15  public function __construct(Container $container) {
16  $this->container = $container;
17  }
18 
24  public function factory() {
25  return $this->container["ui.factory"];
26  }
27 
33  public function renderer() {
34  return $this->container["ui.renderer"];
35  }
36 
42  public function mainTemplate() {
43  return $this->container["tpl"];
44  }
45 }
__construct(Container $container)
Definition: UIServices.php:15
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:12
Provides fluid interface to RBAC services.
Definition: UIServices.php:9
renderer()
Get a renderer for UI components.
Definition: UIServices.php:33
factory()
Get the factory that crafts UI components.
Definition: UIServices.php:24
mainTemplate()
Get the ILIAS main template.
Definition: UIServices.php:42