ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Container.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 
8 
16 {
22  public function database()
23  {
24  return $this["ilDB"];
25  }
26 
32  public function rbac()
33  {
34  return new RBACServices($this);
35  }
36 
42  public function ctrl()
43  {
44  return $this["ilCtrl"];
45  }
46 
52  public function user()
53  {
54  return $this["ilUser"];
55  }
56 
62  public function access()
63  {
64  return $this["ilAccess"];
65  }
66 
72  public function repositoryTree()
73  {
74  return $this["tree"];
75  }
76 
82  public function language()
83  {
84  return $this["lng"];
85  }
86 
92  public function logger()
93  {
94  return new LoggingServices($this);
95  }
96 
102  public function toolbar()
103  {
104  return $this["ilToolbar"];
105  }
106 
112  public function tabs()
113  {
114  return $this["ilTabs"];
115  }
116 
122  public function ui()
123  {
124  return new UIServices($this);
125  }
126 
132  public function settings()
133  {
134  return $this["ilSetting"];
135  }
136 
137 
143  public function filesystem()
144  {
145  return $this['filesystem'];
146  }
147 
148 
154  public function upload()
155  {
156  return $this['upload'];
157  }
158 
159 
163  public function backgroundTasks()
164  {
165  return new BackgroundTaskServices($this);
166  }
167 
168 
172  public function http()
173  {
174  return $this['http'];
175  }
176 
180  public function event()
181  {
182  return $this['ilAppEventHandler'];
183  }
184 }
logger()
Get interface to get interfaces to different loggers.
Definition: Container.php:92
user()
Get the current user.
Definition: Container.php:52
database()
Get interface to the Database.
Definition: Container.php:22
Provides fluid interface to RBAC services.
tabs()
Get interface to the tabs.
Definition: Container.php:112
repositoryTree()
Get interface to the repository tree.
Definition: Container.php:72
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:15
Class HTTPServicesTest.
toolbar()
Get interface to the toolbar.
Definition: Container.php:102
Provides fluid interface to RBAC services.
Definition: UIServices.php:9
language()
Get interface to the i18n service.
Definition: Container.php:82
rbac()
Get interface to get interfaces to all things rbac.
Definition: Container.php:32
Provides fluid interface to RBAC services.
Definition: RBACServices.php:9
upload()
Gets the file upload interface.
Definition: Container.php:154
filesystem()
Get the Filesystem service interface.
Definition: Container.php:143
Container main class.
Definition: Container.php:34
access()
Get interface for access checks.
Definition: Container.php:62
ctrl()
Get the interface to the control structure.
Definition: Container.php:42
ui()
Get the interface to get services from UI framework.
Definition: Container.php:122
settings()
Get the interface to the settings.
Definition: Container.php:132