ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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...
 
 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 12 of file Container.php.

Member Function Documentation

◆ access()

ILIAS\DI\Container::access ( )

Get interface for access checks.

Returns
\ilAccessHandler

Definition at line 54 of file Container.php.

54 {
55 return $this["ilAccess"];
56 }

◆ ctrl()

ILIAS\DI\Container::ctrl ( )

Get the interface to the control structure.

Returns
\ilCtrl

Definition at line 36 of file Container.php.

36 {
37 return $this["ilCtrl"];
38 }

◆ database()

ILIAS\DI\Container::database ( )

Get interface to the Database.

Returns
\ilDBInterface

Definition at line 18 of file Container.php.

18 {
19 return $this["ilDB"];
20 }

◆ event()

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

Definition at line 115 of file Container.php.

115 {
116 return $this['ilAppEventHandler'];
117 }

◆ language()

ILIAS\DI\Container::language ( )

Get interface to the i18n service.

Returns
\ilLanguage

Reimplemented in ilSystemStyleDICMock, and ilSystemStylesDICMock.

Definition at line 72 of file Container.php.

72 {
73 return $this["lng"];
74 }

◆ logger()

ILIAS\DI\Container::logger ( )

Get interface to get interfaces to different loggers.

Returns
LoggingServices

Definition at line 81 of file Container.php.

81 {
82 return new LoggingServices($this);
83 }

◆ rbac()

ILIAS\DI\Container::rbac ( )

Get interface to get interfaces to all things rbac.

Returns
RBACServices

Definition at line 27 of file Container.php.

27 {
28 return new RBACServices($this);
29 }

◆ repositoryTree()

ILIAS\DI\Container::repositoryTree ( )

Get interface to the repository tree.

Returns
\ilTree

Definition at line 63 of file Container.php.

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

◆ tabs()

ILIAS\DI\Container::tabs ( )

Get interface to the tabs.

Returns
\ilTabsGUI

Definition at line 99 of file Container.php.

99 {
100 return $this["ilTabs"];
101 }

◆ toolbar()

ILIAS\DI\Container::toolbar ( )

Get interface to the toolbar.

Returns
\ilToolbarGUI

Definition at line 90 of file Container.php.

90 {
91 return $this["ilToolbar"];
92 }

◆ ui()

ILIAS\DI\Container::ui ( )

Get the interface to get services from UI framework.

Returns
UIServices

Definition at line 108 of file Container.php.

108 {
109 return new UIServices($this);
110 }

◆ user()

ILIAS\DI\Container::user ( )

Get the current user.

Returns
\ilObjUser

Definition at line 45 of file Container.php.

45 {
46 return $this["ilUser"];
47 }

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