ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilComponentBuildComponentInfoObjective.php
Go to the documentation of this file.
1 <?php
19 use ILIAS\Setup;
20 
21 class ilComponentBuildComponentInfoObjective extends Setup\Artifact\BuildArtifactObjective
22 {
23  public function getArtifactPath(): string
24  {
25  return \ilArtifactComponentRepository::COMPONENT_DATA_PATH;
26  }
27 
28 
29  public function build(): Setup\Artifact
30  {
31  $processor = new \ilComponentInfoDefinitionProcessor();
32  $reader = new \ilComponentDefinitionReader(
33  $processor
34  );
35 
36  $reader->purge();
37  $reader->readComponentDefinitions();
38 
39  return new Setup\Artifact\ArrayArtifact($processor->getData());
40  }
41 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An artifact is some file that is build on demand per installation and is not shipped with the ILIAS s...
Definition: Artifact.php:27