ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilCtrlBaseClassArtifactObjective.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /* Copyright (c) 2021 Thibeau Fuhrer <thf@studer-raimann.ch> Extended GPL, see docs/LICENSE */
6 
11 
18 {
22  public const ARTIFACT_PATH = "./Services/UICore/artifacts/ctrl_base_classes.php";
23 
27  public function getArtifactPath(): string
28  {
29  return self::ARTIFACT_PATH;
30  }
31 
35  public function build(): Artifact
36  {
37  $finder = new ImplementationOfInterfaceFinder();
38 
39  $base_classes = [];
40  foreach ($finder->getMatchingClassNames(ilCtrlBaseClassInterface::class) as $base_class) {
41  $base_classes[] = strtolower($base_class);
42  }
43 
44  return new ArrayArtifact($base_classes);
45  }
46 }
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