ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
LocalConfig.php
Go to the documentation of this file.
1
<?
php
2
declare(strict_types=1);
3
4
namespace
ILIAS\Filesystem\Provider\Configuration
;
5
15
final
class
LocalConfig
16
{
17
22
const
DISALLOW_LINKS
= 1;
26
const
SKIP_LINKS
= 2;
27
31
private
$fileAccessPublic
;
35
private
$fileAccessPrivate
;
39
private
$directoryAccessPublic
;
43
private
$directoryAccessPrivate
;
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
{
127
return
$this->fileAccessPublic
;
128
}
129
130
135
public
function
getFileAccessPrivate
()
136
{
137
return
$this->fileAccessPrivate
;
138
}
139
140
145
public
function
getDirectoryAccessPublic
()
146
{
147
return
$this->directoryAccessPublic
;
148
}
149
150
155
public
function
getDirectoryAccessPrivate
()
156
{
157
return
$this->directoryAccessPrivate
;
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
}
ILIAS\Filesystem\Provider\Configuration\LocalConfig\$linkBehaviour
$linkBehaviour
Definition:
LocalConfig.php:55
ILIAS\Filesystem\Provider\Configuration\LocalConfig\$rootPath
$rootPath
Definition:
LocalConfig.php:47
ILIAS\Filesystem\Provider\Configuration\LocalConfig\getFileAccessPrivate
getFileAccessPrivate()
Definition:
LocalConfig.php:135
ILIAS\Filesystem\Provider\Configuration\LocalConfig\getRootPath
getRootPath()
Definition:
LocalConfig.php:165
ILIAS\Filesystem\Provider\Configuration\LocalConfig\$lockMode
$lockMode
Definition:
LocalConfig.php:51
ILIAS\Filesystem\Provider\Configuration\LocalConfig\getDirectoryAccessPrivate
getDirectoryAccessPrivate()
Definition:
LocalConfig.php:155
ILIAS\Filesystem\Provider\Configuration\LocalConfig\getFileAccessPublic
getFileAccessPublic()
Definition:
LocalConfig.php:125
ILIAS\Filesystem\Provider\Configuration\LocalConfig\$directoryAccessPrivate
$directoryAccessPrivate
Definition:
LocalConfig.php:43
ILIAS\Filesystem\Provider\Configuration\LocalConfig\$directoryAccessPublic
$directoryAccessPublic
Definition:
LocalConfig.php:39
ILIAS\Filesystem\Provider\Configuration\LocalConfig\__construct
__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:102
ILIAS\Filesystem\Provider\Configuration\LocalConfig\getDirectoryAccessPublic
getDirectoryAccessPublic()
Definition:
LocalConfig.php:145
ILIAS\Filesystem\Provider\Configuration
Definition:
LocalConfig.php:4
ILIAS\Filesystem\Provider\Configuration\LocalConfig\getLockMode
getLockMode()
Definition:
LocalConfig.php:175
ILIAS\Filesystem\Provider\Configuration\LocalConfig
Class LocalConfig.
Definition:
LocalConfig.php:15
ILIAS\Filesystem\Provider\Configuration\LocalConfig\getLinkBehaviour
getLinkBehaviour()
Definition:
LocalConfig.php:185
php
ILIAS\Filesystem\Provider\Configuration\LocalConfig\$fileAccessPrivate
$fileAccessPrivate
Definition:
LocalConfig.php:35
ILIAS\Filesystem\Provider\Configuration\LocalConfig\SKIP_LINKS
const SKIP_LINKS
Skip encountered links.
Definition:
LocalConfig.php:26
ILIAS\Filesystem\Provider\Configuration\LocalConfig\DISALLOW_LINKS
const DISALLOW_LINKS
This is the default behaviour because links violate the root filesystem constraint.
Definition:
LocalConfig.php:22
ILIAS\Filesystem\Provider\Configuration\LocalConfig\$fileAccessPublic
$fileAccessPublic
Definition:
LocalConfig.php:31
src
Filesystem
Provider
Configuration
LocalConfig.php
Generated on Thu Jan 16 2025 19:02:37 for ILIAS by
1.8.13 (using
Doxyfile
)