ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Customizing of pimple-DIC for ILIAS. More...
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 () | |
globalScreen () | |
http () | |
event () | |
iliasIni () | |
clientIni () | |
systemStyle () | |
help () | |
question () | |
conditions () | |
Get conditions service. More... | |
learningHistory () | |
news () | |
object () | |
exercise () | |
task () | |
refinery () | |
uiService () | |
bookingManager () | |
isDependencyAvailable ($name) | |
Note: Only use isDependencyAvailable if strictly required. More... | |
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 17 of file Container.php.
ILIAS\DI\Container::access | ( | ) |
Get interface for access checks.
Definition at line 64 of file Container.php.
Referenced by ILIAS\DI\Container\learningHistory(), ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies(), and ILIAS\DI\Container\task().
ILIAS\DI\Container::backgroundTasks | ( | ) |
Definition at line 165 of file Container.php.
Referenced by ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::bookingManager | ( | ) |
Definition at line 314 of file Container.php.
ILIAS\DI\Container::clientIni | ( | ) |
Definition at line 207 of file Container.php.
ILIAS\DI\Container::conditions | ( | ) |
Get conditions service.
Definition at line 241 of file Container.php.
ILIAS\DI\Container::ctrl | ( | ) |
Get the interface to the control structure.
Definition at line 44 of file Container.php.
Referenced by ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::database | ( | ) |
Get interface to the Database.
Definition at line 24 of file Container.php.
Referenced by ILIAS\OnScreenChat\Provider\OnScreenChatNotificationProvider\__construct(), and ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::event | ( | ) |
Definition at line 191 of file Container.php.
ILIAS\DI\Container::exercise | ( | ) |
Definition at line 279 of file Container.php.
ILIAS\DI\Container::filesystem | ( | ) |
Get the Filesystem service interface.
Definition at line 145 of file Container.php.
Referenced by ILIAS\DI\Container\object().
ILIAS\DI\Container::globalScreen | ( | ) |
Definition at line 174 of file Container.php.
Referenced by ILIAS\GlobalScreen\Provider\AbstractPluginProvider\__construct().
ILIAS\DI\Container::help | ( | ) |
ILIAS\DI\Container::http | ( | ) |
Definition at line 183 of file Container.php.
Referenced by ILIAS\DI\Container\uiService().
ILIAS\DI\Container::iliasIni | ( | ) |
Definition at line 199 of file Container.php.
ILIAS\DI\Container::isDependencyAvailable | ( | $name | ) |
Note: Only use isDependencyAvailable if strictly required.
The need for this, mostly points to some underlying problem needing to be solved instead of using this. This was introduced as temporary workaround. See: https://github.com/ILIAS-eLearning/ILIAS/pull/1064
This is syntactic sugar for executing the try catch statement in the clients code. Note that the use of the offsetSet code of the default container should be avoided, since knowledge about the containers internal mechanism is injected.
Example: //This is bad since the client should not need to know about the id's name $DIC->offsetSet("styleDefinition")
//This is better, since the client just needs to know the name defined in the //interface of the component $DIC->isDependencyAvailable("systemStyle")
$name |
Definition at line 340 of file Container.php.
References Vendor\Package\$e, and $name.
ILIAS\DI\Container::language | ( | ) |
Get interface to the i18n service.
Definition at line 84 of file Container.php.
Referenced by ILIAS\OnScreenChat\Provider\OnScreenChatNotificationProvider\__construct(), ILIAS\DI\Container\learningHistory(), ILIAS\DI\Container\news(), ILIAS\DI\Container\object(), ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies(), and ILIAS\DI\Container\task().
ILIAS\DI\Container::learningHistory | ( | ) |
Definition at line 249 of file Container.php.
References ILIAS\DI\Container\access(), ILIAS\DI\Container\language(), ILIAS\DI\Container\repositoryTree(), ILIAS\DI\Container\ui(), and ILIAS\DI\Container\user().
ILIAS\DI\Container::logger | ( | ) |
Get interface to get interfaces to different loggers.
Definition at line 94 of file Container.php.
Referenced by ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::news | ( | ) |
Definition at line 263 of file Container.php.
References ILIAS\DI\Container\language(), ILIAS\DI\Container\settings(), and ILIAS\DI\Container\user().
ILIAS\DI\Container::object | ( | ) |
Definition at line 271 of file Container.php.
References ILIAS\DI\Container\filesystem(), ILIAS\DI\Container\language(), ILIAS\DI\Container\settings(), and ILIAS\DI\Container\upload().
ILIAS\DI\Container::question | ( | ) |
ILIAS\DI\Container::rbac | ( | ) |
Get interface to get interfaces to all things rbac.
Definition at line 34 of file Container.php.
Referenced by ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::refinery | ( | ) |
Definition at line 296 of file Container.php.
ILIAS\DI\Container::repositoryTree | ( | ) |
Get interface to the repository tree.
Definition at line 74 of file Container.php.
Referenced by ILIAS\DI\Container\learningHistory(), and ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::settings | ( | ) |
Get the interface to the settings.
Definition at line 134 of file Container.php.
Referenced by ILIAS\DI\Container\news(), ILIAS\DI\Container\object(), and ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::systemStyle | ( | ) |
Definition at line 215 of file Container.php.
ILIAS\DI\Container::tabs | ( | ) |
Get interface to the tabs.
Definition at line 114 of file Container.php.
Referenced by ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::task | ( | ) |
Definition at line 287 of file Container.php.
References ILIAS\DI\Container\access(), ILIAS\DI\Container\language(), ILIAS\DI\Container\ui(), and ILIAS\DI\Container\user().
ILIAS\DI\Container::toolbar | ( | ) |
Get interface to the toolbar.
Definition at line 104 of file Container.php.
Referenced by ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::ui | ( | ) |
Get the interface to get services from UI framework.
Definition at line 124 of file Container.php.
Referenced by ILIAS\DI\Container\learningHistory(), ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies(), ILIAS\DI\Container\task(), and ILIAS\DI\Container\uiService().
ILIAS\DI\Container::uiService | ( | ) |
Definition at line 305 of file Container.php.
References ILIAS\DI\Container\http(), and ILIAS\DI\Container\ui().
ILIAS\DI\Container::upload | ( | ) |
Gets the file upload interface.
Definition at line 156 of file Container.php.
Referenced by ILIAS\DI\Container\object().
ILIAS\DI\Container::user | ( | ) |
Get the current user.
Definition at line 54 of file Container.php.
Referenced by ILIAS\OnScreenChat\Provider\OnScreenChatNotificationProvider\__construct(), ILIAS\DI\Container\learningHistory(), ILIAS\DI\Container\news(), ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies(), and ILIAS\DI\Container\task().