ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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 () | |
skills () | |
resourceStorage () | |
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 18 of file Container.php.
ILIAS\DI\Container::access | ( | ) |
Get interface for access checks.
Definition at line 65 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 166 of file Container.php.
Referenced by ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::bookingManager | ( | ) |
Definition at line 315 of file Container.php.
ILIAS\DI\Container::clientIni | ( | ) |
Definition at line 208 of file Container.php.
ILIAS\DI\Container::conditions | ( | ) |
Get conditions service.
Definition at line 242 of file Container.php.
ILIAS\DI\Container::ctrl | ( | ) |
Get the interface to the control structure.
Definition at line 45 of file Container.php.
Referenced by ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::database | ( | ) |
Get interface to the Database.
Definition at line 25 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 192 of file Container.php.
ILIAS\DI\Container::exercise | ( | ) |
Definition at line 280 of file Container.php.
ILIAS\DI\Container::filesystem | ( | ) |
Get the Filesystem service interface.
Definition at line 146 of file Container.php.
Referenced by ILIAS\DI\Container\object().
ILIAS\DI\Container::globalScreen | ( | ) |
Definition at line 175 of file Container.php.
Referenced by ILIAS\GlobalScreen\Provider\AbstractPluginProvider\__construct().
ILIAS\DI\Container::help | ( | ) |
ILIAS\DI\Container::http | ( | ) |
Definition at line 184 of file Container.php.
Referenced by ILIAS\DI\Container\uiService().
ILIAS\DI\Container::iliasIni | ( | ) |
Definition at line 200 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 355 of file Container.php.
References Vendor\Package\$e, and $name.
ILIAS\DI\Container::language | ( | ) |
Get interface to the i18n service.
Definition at line 85 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 250 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 95 of file Container.php.
Referenced by ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::news | ( | ) |
Definition at line 264 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 272 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 35 of file Container.php.
Referenced by ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::refinery | ( | ) |
Definition at line 297 of file Container.php.
ILIAS\DI\Container::repositoryTree | ( | ) |
Get interface to the repository tree.
Definition at line 75 of file Container.php.
Referenced by ILIAS\DI\Container\learningHistory(), and ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::resourceStorage | ( | ) |
Definition at line 329 of file Container.php.
ILIAS\DI\Container::settings | ( | ) |
Get the interface to the settings.
Definition at line 135 of file Container.php.
Referenced by ILIAS\DI\Container\news(), ILIAS\DI\Container\object(), and ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::skills | ( | ) |
Definition at line 324 of file Container.php.
ILIAS\DI\Container::systemStyle | ( | ) |
Definition at line 216 of file Container.php.
ILIAS\DI\Container::tabs | ( | ) |
Get interface to the tabs.
Definition at line 115 of file Container.php.
Referenced by ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::task | ( | ) |
Definition at line 288 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 105 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 125 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 306 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 157 of file Container.php.
Referenced by ILIAS\DI\Container\object().
ILIAS\DI\Container::user | ( | ) |
Get the current user.
Definition at line 55 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().