ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilFileSystemSetupConfig.php
Go to the documentation of this file.
1 <?php
2 
20 
22 {
23  protected string $data_dir;
24 
25  public function __construct(
26  string $data_dir
27  ) {
28  $this->data_dir = $this->normalizePath($data_dir);
29  }
30 
31  protected function normalizePath(string $p): ?string
32  {
33  $p = preg_replace("/\\\\/", "/", $p);
34  return preg_replace("%/+$%", "", (string) $p);
35  }
36 
37  public function getDataDir(): string
38  {
39  return $this->data_dir;
40  }
41 
42  public function getWebDir(): string
43  {
44  return dirname(__DIR__, 5) . "/public/data";
45  }
46 }
A configuration for the setup.
Definition: Config.php:26