19 declare(strict_types=1);
31 protected string $base_dir = StorageHandlerFactory::BASE_DIRECTORY;
40 public function __construct(array $storage_handler_ids = null)
48 $ini = $environment->getResource(Setup\Environment::RESOURCE_ILIAS_INI);
49 $client_id = $environment->getResource(Setup\Environment::RESOURCE_CLIENT_ID);
50 return $ini->readVariable(
62 if ($environment->hasConfigFor(
"filesystem")) {
63 $config = $environment->getConfigFor(
"filesystem");
65 new \ilFileSystemDirectoriesCreatedObjective(
$config)
71 new \ilIniFilesLoadedObjective()
78 $this->path = $base_path;
79 $environment = parent::achieve($environment);
81 foreach ($this->storage_handler_ids as $storage_handler_id) {
82 $this->path = $base_path .
'/' . $storage_handler_id;
83 $environment = parent::achieve($environment);
94 $this->path = $base_path;
95 if (parent::isApplicable($environment)) {
99 foreach ($this->storage_handler_ids as $storage_handler_id) {
100 $this->path = $base_path .
'/' . $storage_handler_id;
101 if (parent::isApplicable($environment)) {
buildStorageBasePath(Setup\Environment $environment)
Class ilStorageContainersExistingObjective.
__construct(array $storage_handler_ids=null)
achieve(Setup\Environment $environment)
array $storage_handler_ids
getPreconditions(Setup\Environment $environment)
isApplicable(Setup\Environment $environment)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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.
__construct(Container $dic, ilPlugin $plugin)