ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilGlobalScreenBuildProviderMapObjective.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
32 
37 {
38  public function getArtifactName(): string
39  {
40  return "global_screen_providers";
41  }
42 
43 
44  public function build(): Artifact
45  {
46  $class_names = [];
47  $i = [
48  StaticMainMenuProvider::class,
49  StaticMetaBarProvider::class,
50  StaticFooterProvider::class,
51  DynamicToolProvider::class,
52  ModificationProvider::class,
53  NotificationProvider::class,
54  ToastProvider::class
55  ];
56 
57  $finder = new ImplementationOfInterfaceFinder();
58  foreach ($i as $interface) {
59  $class_names[$interface] = iterator_to_array(
60  $finder->getMatchingClassNames($interface)
61  );
62  }
63 
64  return new ArrayArtifact($class_names);
65  }
66 }
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