ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilGlobalScreenBuildProviderMapObjective.php
Go to the documentation of this file.
1 <?php
2 
8 use ILIAS\Setup;
9 
15 class ilGlobalScreenBuildProviderMapObjective extends Setup\BuildArtifactObjective
16 {
17  public function getArtifactPath() : string
18  {
19  return "Services/GlobalScreen/artifacts/global_screen_providers.php";
20  }
21 
22 
23  public function build() : Setup\Artifact
24  {
25  $class_names = [];
26  $i = [
27  StaticMainMenuProvider::class,
28  StaticMetaBarProvider::class,
29  DynamicToolProvider::class,
30  ModificationProvider::class,
31  NotificationProvider::class,
32  ];
33 
34  foreach ($i as $interface) {
35  $i = new Setup\ImplementationOfInterfaceFinder($interface);
36  $class_names[$interface] = iterator_to_array($i->getMatchingClassNames());
37  }
38 
39  return new Setup\ArrayArtifact($class_names);
40  }
41 }
An artifact is some file that is build on demand per installation and is not shipped with the ILIAS s...
Definition: Artifact.php:11
$i
Definition: metadata.php:24