ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
LocalConfig.php
Go to the documentation of this file.
1 <?php
2 declare(strict_types=1);
3 
5 
15 final class LocalConfig
16 {
17 
22  const DISALLOW_LINKS = 1;
26  const SKIP_LINKS = 2;
27 
47  private $rootPath;
51  private $lockMode;
55  private $linkBehaviour;
56 
57 
102  public function __construct(
103  string $rootPath,
104  int $fileAccessPublic = 0744,
105  int $fileAccessPrivate = 0700,
106  int $directoryAccessPublic = 0755,
107  int $directoryAccessPrivate = 0700,
108  int $lockMode = LOCK_EX,
109  int $linkBehaviour = self::SKIP_LINKS
110  ) {
111  $this->rootPath = $rootPath;
112  $this->fileAccessPublic = $fileAccessPublic;
113  $this->fileAccessPrivate = $fileAccessPrivate;
114  $this->directoryAccessPublic = $directoryAccessPublic;
115  $this->directoryAccessPrivate = $directoryAccessPrivate;
116  $this->lockMode = $lockMode;
117  $this->linkBehaviour = $linkBehaviour;
118  }
119 
120 
125  public function getFileAccessPublic()
126  {
128  }
129 
130 
135  public function getFileAccessPrivate()
136  {
138  }
139 
140 
145  public function getDirectoryAccessPublic()
146  {
148  }
149 
150 
155  public function getDirectoryAccessPrivate()
156  {
158  }
159 
160 
165  public function getRootPath()
166  {
167  return $this->rootPath;
168  }
169 
170 
175  public function getLockMode()
176  {
177  return $this->lockMode;
178  }
179 
180 
185  public function getLinkBehaviour()
186  {
187  return $this->linkBehaviour;
188  }
189 }
__construct(string $rootPath, int $fileAccessPublic=0744, int $fileAccessPrivate=0700, int $directoryAccessPublic=0755, int $directoryAccessPrivate=0700, int $lockMode=LOCK_EX, int $linkBehaviour=self::SKIP_LINKS)
LocalConfig constructor.
const DISALLOW_LINKS
This is the default behaviour because links violate the root filesystem constraint.
Definition: LocalConfig.php:22