ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 () | |
conditions () | |
Get conditions service. More... | |
learningHistory () | |
news () | |
object () | |
isDependencyAvailable ($name) | |
Note: Only use isDependencyAvailable if strictly required. More... | |
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... | |
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 16 of file Container.php.
ILIAS\DI\Container::access | ( | ) |
Get interface for access checks.
Definition at line 63 of file Container.php.
Referenced by ILIAS\DI\Container\learningHistory(), and ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::backgroundTasks | ( | ) |
Definition at line 164 of file Container.php.
Referenced by ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::clientIni | ( | ) |
Definition at line 206 of file Container.php.
ILIAS\DI\Container::conditions | ( | ) |
Get conditions service.
Definition at line 232 of file Container.php.
ILIAS\DI\Container::ctrl | ( | ) |
Get the interface to the control structure.
Definition at line 43 of file Container.php.
Referenced by ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::database | ( | ) |
Get interface to the Database.
Definition at line 23 of file Container.php.
Referenced by ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::event | ( | ) |
Definition at line 190 of file Container.php.
ILIAS\DI\Container::filesystem | ( | ) |
Get the Filesystem service interface.
Definition at line 144 of file Container.php.
Referenced by ILIAS\DI\Container\object().
ILIAS\DI\Container::globalScreen | ( | ) |
Definition at line 173 of file Container.php.
ILIAS\DI\Container::help | ( | ) |
ILIAS\DI\Container::http | ( | ) |
Definition at line 182 of file Container.php.
ILIAS\DI\Container::iliasIni | ( | ) |
Definition at line 198 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 288 of file Container.php.
References $name.
ILIAS\DI\Container::language | ( | ) |
Get interface to the i18n service.
Definition at line 83 of file Container.php.
Referenced by ILIAS\DI\Container\learningHistory(), ILIAS\DI\Container\news(), ILIAS\DI\Container\object(), and ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::learningHistory | ( | ) |
Definition at line 240 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 93 of file Container.php.
Referenced by ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::news | ( | ) |
Definition at line 254 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 262 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::rbac | ( | ) |
Get interface to get interfaces to all things rbac.
Definition at line 33 of file Container.php.
Referenced by ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::repositoryTree | ( | ) |
Get interface to the repository tree.
Definition at line 73 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 133 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 214 of file Container.php.
ILIAS\DI\Container::tabs | ( | ) |
Get interface to the tabs.
Definition at line 113 of file Container.php.
Referenced by ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::toolbar | ( | ) |
Get interface to the toolbar.
Definition at line 103 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 123 of file Container.php.
Referenced by ILIAS\DI\Container\learningHistory(), and ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().
ILIAS\DI\Container::upload | ( | ) |
Gets the file upload interface.
Definition at line 155 of file Container.php.
Referenced by ILIAS\DI\Container\object().
ILIAS\DI\Container::user | ( | ) |
Get the current user.
Definition at line 53 of file Container.php.
Referenced by ILIAS\DI\Container\learningHistory(), ILIAS\DI\Container\news(), and ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\resolveBaseDependencies().