ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilComponentBuildComponentInfoObjective.php
Go to the documentation of this file.
1<?php
2
19use ILIAS\Setup;
20
22{
23 public function getArtifactName(): string
24 {
25 return "component_data";
26 }
27
28 public function build(): Setup\Artifact
29 {
30 $processor = new \ilComponentInfoDefinitionProcessor();
31 $reader = new \ilComponentDefinitionReader(
32 $processor
33 );
34
35 $reader->purge();
36 $reader->readComponentDefinitions();
37
38 return new Setup\Artifact\ArrayArtifact($processor->getData());
39 }
40}
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:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...