ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilLSDI.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2
3use Pimple\Container;
5
9class ilLSDI extends Container
10{
11 public function init(ArrayAccess $dic)
12 {
13 $this["db.filesystem"] = function ($c) : ilLearningSequenceFilesystem {
15 };
16
17 $this["db.settings"] = function ($c) use ($dic) : ilLearningSequenceSettingsDB {
19 $dic["ilDB"],
20 $c["db.filesystem"]
21 );
22 };
23
24 $this["db.activation"] = function ($c) use ($dic) : ilLearningSequenceActivationDB {
25 return new ilLearningSequenceActivationDB($dic["ilDB"]);
26 };
27
28 $this["db.states"] = function ($c) use ($dic) : ilLSStateDB {
29 return new ilLSStateDB($dic["ilDB"]);
30 };
31
32 $this["db.postconditions"] = function ($c) use ($dic) : ilLSPostConditionDB {
33 return new ilLSPostConditionDB($dic["ilDB"]);
34 };
35
36 $this["gs.current_context"] = function ($c) use ($dic) : ScreenContext {
37 return $dic->globalScreen()->tool()->context()->current();
38 };
39 }
40}
An exception for terminatinating execution or to throw for unit testing.
init(ArrayAccess $dic)
Storage for ilLSPostConditions.
Persistence for View-States.
Persistence for online/activation period.
Persistence for Settings (like abstract, extro)
$dic
Definition: result.php:13