ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
class.ilCtrlBaseClassArtifactObjective.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
This is an objective to build some artifact.
An array as an 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