ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ILIAS\DI\Container Class Reference

Customizing of pimple-DIC for ILIAS. More...

+ Inheritance diagram for ILIAS\DI\Container:
+ Collaboration diagram for ILIAS\DI\Container:

Public Member Functions

 database ()
 Get interface to the Database. More...
 
 rbac ()
 Get interface to get interfaces to all things rbac. More...
 
 ctrl ()
 Get the interface to the control structure. More...
 
 user ()
 Get the current user. More...
 
 access ()
 Get interface for access checks. More...
 
 repositoryTree ()
 Get interface to the repository tree. More...
 
 language ()
 Get interface to the i18n service. More...
 
 logger ()
 Get interface to get interfaces to different loggers. More...
 
 toolbar ()
 Get interface to the toolbar. More...
 
 tabs ()
 Get interface to the tabs. More...
 
 ui ()
 Get the interface to get services from UI framework. More...
 
 settings ()
 Get the interface to the settings. More...
 
 filesystem ()
 Get the Filesystem service interface. More...
 
 upload ()
 Gets the file upload interface. More...
 
 backgroundTasks ()
 
 http ()
 
 event ()
 
- Public Member Functions inherited from Pimple\Container
 __construct (array $values=array())
 Instantiate the container. More...
 
 offsetSet ($id, $value)
 Sets a parameter or an object. More...
 
 offsetGet ($id)
 Gets a parameter or an object. More...
 
 offsetExists ($id)
 Checks if a parameter or an object is set. More...
 
 offsetUnset ($id)
 Unsets a parameter or an object. More...
 
 factory ($callable)
 Marks a callable as being a factory service. More...
 
 protect ($callable)
 Protects a callable from being interpreted as a service. More...
 
 raw ($id)
 Gets a parameter or the closure defining an object. More...
 
 extend ($id, $callable)
 Extends an object definition. More...
 
 keys ()
 Returns all defined value names. More...
 
 register (ServiceProviderInterface $provider, array $values=array())
 Registers a service provider. More...
 

Detailed Description

Customizing of pimple-DIC for ILIAS.

This just exposes some of the services in the container as plain methods to help IDEs when using ILIAS.

Definition at line 15 of file Container.php.

Member Function Documentation

◆ access()

ILIAS\DI\Container::access ( )

Get interface for access checks.

Returns
\ilAccessHandler

Definition at line 62 of file Container.php.

63 {
64 return $this["ilAccess"];
65 }

◆ backgroundTasks()

ILIAS\DI\Container::backgroundTasks ( )
Returns
BackgroundTaskServices

Definition at line 163 of file Container.php.

164 {
165 return new BackgroundTaskServices($this);
166 }

◆ ctrl()

ILIAS\DI\Container::ctrl ( )

Get the interface to the control structure.

Returns
\ilCtrl

Definition at line 42 of file Container.php.

43 {
44 return $this["ilCtrl"];
45 }

◆ database()

ILIAS\DI\Container::database ( )

Get interface to the Database.

Returns
\ilDBInterface

Definition at line 22 of file Container.php.

23 {
24 return $this["ilDB"];
25 }

◆ event()

ILIAS\DI\Container::event ( )
Returns
\ilAppEventHandler

Definition at line 180 of file Container.php.

181 {
182 return $this['ilAppEventHandler'];
183 }

◆ filesystem()

ILIAS\DI\Container::filesystem ( )

Get the Filesystem service interface.

Returns
Filesystems

Definition at line 143 of file Container.php.

144 {
145 return $this['filesystem'];
146 }

◆ http()

ILIAS\DI\Container::http ( )
Returns
HTTPServices

Definition at line 172 of file Container.php.

173 {
174 return $this['http'];
175 }

◆ language()

ILIAS\DI\Container::language ( )

Get interface to the i18n service.

Returns
\ilLanguage

Reimplemented in ilSystemStyleDICMock.

Definition at line 82 of file Container.php.

83 {
84 return $this["lng"];
85 }

◆ logger()

ILIAS\DI\Container::logger ( )

Get interface to get interfaces to different loggers.

Returns
LoggingServices

Reimplemented in ilSystemStyleDICMock.

Definition at line 92 of file Container.php.

93 {
94 return new LoggingServices($this);
95 }

◆ rbac()

ILIAS\DI\Container::rbac ( )

Get interface to get interfaces to all things rbac.

Returns
RBACServices

Definition at line 32 of file Container.php.

33 {
34 return new RBACServices($this);
35 }

◆ repositoryTree()

ILIAS\DI\Container::repositoryTree ( )

Get interface to the repository tree.

Returns
\ilTree

Definition at line 72 of file Container.php.

73 {
74 return $this["tree"];
75 }

◆ settings()

ILIAS\DI\Container::settings ( )

Get the interface to the settings.

Returns
\ilSetting

Definition at line 132 of file Container.php.

133 {
134 return $this["ilSetting"];
135 }

◆ tabs()

ILIAS\DI\Container::tabs ( )

Get interface to the tabs.

Returns
\ilTabsGUI

Definition at line 112 of file Container.php.

113 {
114 return $this["ilTabs"];
115 }

◆ toolbar()

ILIAS\DI\Container::toolbar ( )

Get interface to the toolbar.

Returns
\ilToolbarGUI

Definition at line 102 of file Container.php.

103 {
104 return $this["ilToolbar"];
105 }

◆ ui()

ILIAS\DI\Container::ui ( )

Get the interface to get services from UI framework.

Returns
UIServices

Definition at line 122 of file Container.php.

123 {
124 return new UIServices($this);
125 }

◆ upload()

ILIAS\DI\Container::upload ( )

Gets the file upload interface.

Returns
FileUpload

Definition at line 154 of file Container.php.

155 {
156 return $this['upload'];
157 }

◆ user()

ILIAS\DI\Container::user ( )

Get the current user.

Returns
\ilObjUser

Definition at line 52 of file Container.php.

53 {
54 return $this["ilUser"];
55 }

The documentation for this class was generated from the following file: