ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
ConsumerObjective.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\LegalDocuments\Setup
;
20
21
use
ILIAS\LegalDocuments\Consumer
;
22
use
ILIAS\LegalDocuments\Internal
;
23
use
ILIAS\Setup\Artifact
;
24
use
ILIAS\Setup\Artifact\ArrayArtifact
;
25
use
ILIAS\Setup\Artifact\BuildArtifactObjective
;
26
use
ILIAS\Setup\ImplementationOfInterfaceFinder
;
27
28
class
ConsumerObjective
extends
BuildArtifactObjective
29
{
30
public
function
getArtifactPath
(): string
31
{
32
return
Internal::path
();
33
}
34
35
public
function
build
():
Artifact
36
{
37
$finder =
new
ImplementationOfInterfaceFinder
();
38
$classes = iterator_to_array($finder->getMatchingClassNames(Consumer::class));
39
$ids = array_map(fn($class) => (
new
$class())->
id
(), $classes);
40
41
return
new
ArrayArtifact
(array_combine($ids, $classes));
42
}
43
}
ArrayArtifact
ILIAS\LegalDocuments\Setup\ConsumerObjective\build
build()
Definition:
ConsumerObjective.php:35
ILIAS\Setup\Artifact\BuildArtifactObjective
This is an objective to build some artifact.
Definition:
BuildArtifactObjective.php:28
ImplementationOfInterfaceFinder
ILIAS\Setup\Artifact
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
ArrayArtifact.php:21
Internal
ILIAS\LegalDocuments\Setup
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
Agent.php:21
ILIAS\LegalDocuments\Internal\path
static path()
Definition:
Internal.php:55
ILIAS\LegalDocuments\Setup\ConsumerObjective
Definition:
ConsumerObjective.php:28
ILIAS\LegalDocuments\Setup\ConsumerObjective\getArtifactPath
getArtifactPath()
Definition:
ConsumerObjective.php:30
ILIAS\Setup\Artifact\ArrayArtifact
An array as an artifact.
Definition:
ArrayArtifact.php:28
ILIAS\Setup\Artifact
An artifact is some file that is build on demand per installation and is not shipped with the ILIAS s...
Definition:
Artifact.php:27
ILIAS\Setup\ImplementationOfInterfaceFinder
Definition:
ImplementationOfInterfaceFinder.php:28
BuildArtifactObjective
Consumer
Services
LegalDocuments
classes
Setup
ConsumerObjective.php
Generated on Wed Sep 10 2025 14:11:33 for ILIAS by
1.8.13 (using
Doxyfile
)