ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ConsumerObjective.php
Go to the documentation of this file.
1<?php
2
20
26
28{
29 public function getArtifactName(): string
30 {
31 return "legal_documents_consumer";
32 }
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}
getArtifactName()
Get the filename where the builder wants to put its artifact.
An array as an artifact.
This is an objective to build some artifact.
An artifact is some file that is build on demand per installation and is not shipped with the ILIAS s...
Definition: Artifact.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Agent.php:21