ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
LocalConfig.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
29final class LocalConfig
30{
36 public const DISALLOW_LINKS = 1;
41 public const SKIP_LINKS = 2;
42
87 public function __construct(
88 private string $rootPath,
89 private int $fileAccessPublic = 0744,
90 private int $fileAccessPrivate = 0700,
91 private int $directoryAccessPublic = 0755,
92 private int $directoryAccessPrivate = 0700,
93 private int $lockMode = LOCK_EX,
94 private int $linkBehaviour = self::SKIP_LINKS
95 ) {
96 }
97
100 public function getFileAccessPublic(): int
101 {
102 return $this->fileAccessPublic;
103 }
104
107 public function getFileAccessPrivate(): int
108 {
109 return $this->fileAccessPrivate;
110 }
111
114 public function getDirectoryAccessPublic(): int
115 {
116 return $this->directoryAccessPublic;
117 }
118
122 {
123 return $this->directoryAccessPrivate;
124 }
125
128 public function getRootPath(): string
129 {
130 return $this->rootPath;
131 }
132
135 public function getLockMode(): int
136 {
137 return $this->lockMode;
138 }
139
142 public function getLinkBehaviour(): int
143 {
144 return $this->linkBehaviour;
145 }
146}
This class is used to configure the local filesystem adapter.
Definition: LocalConfig.php:30
__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:87