ILIAS  release_7 Revision v7.30-3-g800a261c036
LocalConfig.php
Go to the documentation of this file.
1<?php
2declare(strict_types=1);
3
5
13final class LocalConfig
14{
15
20 const DISALLOW_LINKS = 1;
24 const SKIP_LINKS = 2;
25
45 private $rootPath;
49 private $lockMode;
54
89 public function __construct(
90 string $rootPath,
91 int $fileAccessPublic = 0744,
92 int $fileAccessPrivate = 0700,
93 int $directoryAccessPublic = 0755,
94 int $directoryAccessPrivate = 0700,
95 int $lockMode = LOCK_EX,
96 int $linkBehaviour = self::SKIP_LINKS
97 ) {
98 $this->rootPath = $rootPath;
99 $this->fileAccessPublic = $fileAccessPublic;
100 $this->fileAccessPrivate = $fileAccessPrivate;
101 $this->directoryAccessPublic = $directoryAccessPublic;
102 $this->directoryAccessPrivate = $directoryAccessPrivate;
103 $this->lockMode = $lockMode;
104 $this->linkBehaviour = $linkBehaviour;
105 }
106
111 public function getFileAccessPublic()
112 {
114 }
115
120 public function getFileAccessPrivate()
121 {
123 }
124
129 public function getDirectoryAccessPublic()
130 {
132 }
133
139 {
141 }
142
147 public function getRootPath()
148 {
149 return $this->rootPath;
150 }
151
156 public function getLockMode()
157 {
158 return $this->lockMode;
159 }
160
165 public function getLinkBehaviour()
166 {
168 }
169}
An exception for terminatinating execution or to throw for unit testing.
Class LocalConfig This class is used to configure the local filesystem adapter.
Definition: LocalConfig.php:14
const DISALLOW_LINKS
This is the default behaviour because links violate the root filesystem constraint.
Definition: LocalConfig.php:20
__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.
Definition: LocalConfig.php:89