|
| __construct (Closure $create_provide, Closure $create_wiring, ?array $consumer_classes=null) |
|
| all (string $name) |
|
| get (string $name, string $key) |
|
Definition at line 26 of file Internal.php.
◆ __construct()
ILIAS\LegalDocuments\Internal::__construct |
( |
Closure |
$create_provide, |
|
|
Closure |
$create_wiring, |
|
|
?array |
$consumer_classes = null |
|
) |
| |
- Parameters
-
Closure(string) | Provide $create_provide |
Closure(string) | Wiring $create_wiring |
null|list<class-string> | $consumer_classes |
Definition at line 36 of file Internal.php.
References ILIAS\Setup\Artifact\BuildArtifactObjective\PATH().
38 $lens = fn($consumer) => $consumer->uses($create_wiring($consumer->id()),
new LazyProvide(fn() => $create_provide($consumer->id())));
39 $this->map = array_reduce(
41 fn(
$map, $consumer) =>
$map->append($lens(
new $consumer())->map()),
◆ all()
ILIAS\LegalDocuments\Internal::all |
( |
string |
$name | ) |
|
Definition at line 46 of file Internal.php.
48 return $this->map[$name] ?? [];
◆ get()
ILIAS\LegalDocuments\Internal::get |
( |
string |
$name, |
|
|
string |
$key |
|
) |
| |
Definition at line 51 of file Internal.php.
References null.
53 return $this->map[$name][$key] ??
null;
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ $map
readonly array ILIAS\LegalDocuments\Internal::$map |
|
private |
The documentation for this class was generated from the following file: