ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
LocalConfig.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
29 final class LocalConfig
30 {
35  public const DISALLOW_LINKS = 1;
39  public const SKIP_LINKS = 2;
40 
85  public function __construct(
86  private string $rootPath,
87  private int $fileAccessPublic = 0744,
88  private int $fileAccessPrivate = 0700,
89  private int $directoryAccessPublic = 0755,
90  private int $directoryAccessPrivate = 0700,
91  private int $lockMode = LOCK_EX,
92  private int $linkBehaviour = self::SKIP_LINKS
93  ) {
94  }
95 
98  public function getFileAccessPublic(): int
99  {
100  return $this->fileAccessPublic;
101  }
102 
105  public function getFileAccessPrivate(): int
106  {
107  return $this->fileAccessPrivate;
108  }
109 
112  public function getDirectoryAccessPublic(): int
113  {
114  return $this->directoryAccessPublic;
115  }
116 
119  public function getDirectoryAccessPrivate(): int
120  {
121  return $this->directoryAccessPrivate;
122  }
123 
126  public function getRootPath(): string
127  {
128  return $this->rootPath;
129  }
130 
133  public function getLockMode(): int
134  {
135  return $this->lockMode;
136  }
137 
140  public function getLinkBehaviour(): int
141  {
142  return $this->linkBehaviour;
143  }
144 }
__construct(private string $rootPath, private int $fileAccessPublic=0744, private int $fileAccessPrivate=0700, private int $directoryAccessPublic=0755, private int $directoryAccessPrivate=0700, private int $lockMode=LOCK_EX, private int $linkBehaviour=self::SKIP_LINKS)
LocalConfig constructor.
Definition: LocalConfig.php:85
This class is used to configure the local filesystem adapter.
Definition: LocalConfig.php:29
const DISALLOW_LINKS
This is the default behaviour because links violate the root filesystem constraint.
Definition: LocalConfig.php:35