ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilGlobalScreenBuildProviderMapObjective.php
Go to the documentation of this file.
1<?php
2
9
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) {
36 $class_names[$interface] = iterator_to_array($i->getMatchingClassNames());
37 }
38
39 return new Setup\ArrayArtifact($class_names);
40 }
41}
An exception for terminatinating execution or to throw for unit testing.
An array as an artifact.
This is an objective to build some artifact.
An artifact is some file that is build on demand per installation and is not shipped with the ILIAS s...
Definition: Artifact.php:12
$i
Definition: metadata.php:24