ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilCtrlBaseClassArtifactObjective.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25
32{
33
34 public function getArtifactName(): string
35 {
36 return "ctrl_base_classes";
37 }
38
42 public function build(): Artifact
43 {
44 $finder = new ImplementationOfInterfaceFinder();
45
46 $base_classes = [];
47 foreach ($finder->getMatchingClassNames(ilCtrlBaseClassInterface::class) as $base_class) {
48 $base_classes[] = strtolower($base_class);
49 }
50
51 return new ArrayArtifact($base_classes);
52 }
53}
An array as an artifact.
This is an objective to build some artifact.
getArtifactName()
Get the filename where the builder wants to put its 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