|
| __construct () |
|
| getDependencyWith (Container $DIC, string $fullyQualifiedDomainName, string $for, callable $map) |
| - Parameters
-
Container | $DIC | The DIC to take the dependencies from. |
string | $fullyQualifiedDomainName | What domain name is requested? |
callable | $map | (DIC $DIC, string $fullyQualifiedDomainName, string $for) => mixed|null |
string | $for | What class is the dependency for? Also fully qualified domain name. |
- Returns
- mixed
More...
|
|
| with (callable $map) |
| Returns a new dependency map with the given mapping. More...
|
|
| getDependency (Container $DIC, string $fullyQualifiedDomainName, string $for) |
| - Parameters
-
Container | $DIC | The DIC to take the dependencies from. |
string | $fullyQualifiedDomainName | What domain name is requested? |
string | $for | What class is the dependency for? Also fully qualified domain name. |
- Returns
- mixed
More...
|
|
Definition at line 33 of file BaseDependencyMap.php.
◆ __construct()
ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap::__construct |
( |
| ) |
|
◆ resolveBaseDependencies()
ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap::resolveBaseDependencies |
( |
Container |
$DIC, |
|
|
|
$fullyQualifiedDomainName, |
|
|
|
$for |
|
) |
| |
|
protected |
Definition at line 42 of file BaseDependencyMap.php.
References ILIAS\DI\Container\access(), ILIAS\DI\Container\backgroundTasks(), ILIAS\DI\Container\ctrl(), ILIAS\DI\Container\database(), ILIAS\DI\Container\language(), ILIAS\DI\Container\logger(), null, ILIAS\DI\Container\rbac(), ILIAS\DI\Container\repositoryTree(), ILIAS\DI\Container\settings(), ILIAS\DI\Container\tabs(), ILIAS\DI\Container\toolbar(), ILIAS\DI\Container\ui(), and ILIAS\DI\Container\user().
Referenced by ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap\__construct().
46 switch ($fullyQualifiedDomainName) {
47 case \ilDBInterface::class:
48 return $DIC->database();
49 case \ilRbacAdmin::class:
50 return $DIC->rbac()->admin();
51 case \ilRbacReview::class:
52 return $DIC->rbac()->review();
53 case \ilRbacSystem::class:
54 return $DIC->rbac()->system();
55 case \ilAccessHandler::class:
56 return $DIC->access();
59 case \ilObjUser::class:
62 return $DIC->repositoryTree();
63 case \ilLanguage::class:
64 return $DIC->language();
65 case \ilLoggerFactory::class:
66 return $DIC[
"ilLoggerFactory"];
67 case \ilLogger::class:
68 return $DIC->logger()->root();
69 case \ilToolbarGUI::class:
70 return $DIC->toolbar();
71 case \ilTabsGUI::class:
74 return $DIC->backgroundTasks()->injector();
75 case \ilSetting::class:
76 return $DIC->settings();
78 return $DIC->ui()->factory();
80 return $DIC->ui()->renderer();
81 case \ilTemplate::class:
82 return $DIC->ui()->mainTemplate();
83 case Persistence::class:
84 return $DIC->backgroundTasks()->persistence();
85 case TaskFactory::class:
86 return $DIC->backgroundTasks()->taskFactory();
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ $map
array ILIAS\BackgroundTasks\Dependencies\DependencyMap\BaseDependencyMap::$map = [] |
|
protected |
The documentation for this class was generated from the following file: