27 return \ilArtifactEventHandlingData::EVENT_HANDLING_DATA_PATH;
39 $this->component_repository = $environment->
getResource(Setup\Environment::RESOURCE_COMPONENT_REPOSITORY);
41 return parent::achieve($environment);
46 $processor = new \ilEventHandlingDefinitionProcessor();
61 protected function getComponents(): \Iterator
63 yield
from parent::getComponents();
65 foreach ($this->component_repository->getPlugins() as
$plugin) {
66 $xml_plugin_path =
$plugin->getPath() .
'/plugin.xml';
67 if (!file_exists($xml_plugin_path)) {
79 $plugin_and_components_reader->purge();
80 $plugin_and_components_reader->readComponentDefinitions();
82 return new Setup\Artifact\ArrayArtifact($processor->getData());
Readable part of repository interface to ilComponentDataDB.
An ilComponentDefinitionProcessor processes some attributes from a component.xml (i.e.
ilComponentRepository $component_repository
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An environment holds resources to be used in the setup process.
An artifact is some file that is build on demand per installation and is not shipped with the ILIAS s...
achieve(Setup\Environment $environment)
getPreconditions(Setup\Environment $environment)