ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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