ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
LocalConfig.php
Go to the documentation of this file.
1<?php
2
4
14final class LocalConfig
15{
16
21 const DISALLOW_LINKS = 1;
25 const SKIP_LINKS = 2;
26
46 private $rootPath;
50 private $lockMode;
55
56
101 public function __construct(
102 $rootPath,
103 $fileAccessPublic = 0744,
104 $fileAccessPrivate = 0700,
107 $lockMode = LOCK_EX,
108 $linkBehaviour = self::SKIP_LINKS
109 ) {
110 $this->rootPath = $rootPath;
111 $this->fileAccessPublic = $fileAccessPublic;
112 $this->fileAccessPrivate = $fileAccessPrivate;
113 $this->directoryAccessPublic = $directoryAccessPublic;
114 $this->directoryAccessPrivate = $directoryAccessPrivate;
115 $this->lockMode = $lockMode;
116 $this->linkBehaviour = $linkBehaviour;
117 }
118
119
124 public function getFileAccessPublic()
125 {
127 }
128
129
134 public function getFileAccessPrivate()
135 {
137 }
138
139
144 public function getDirectoryAccessPublic()
145 {
147 }
148
149
155 {
157 }
158
159
164 public function getRootPath()
165 {
166 return $this->rootPath;
167 }
168
169
174 public function getLockMode()
175 {
176 return $this->lockMode;
177 }
178
179
184 public function getLinkBehaviour()
185 {
187 }
188}
An exception for terminatinating execution or to throw for unit testing.
__construct( $rootPath, $fileAccessPublic=0744, $fileAccessPrivate=0700, $directoryAccessPublic=0755, $directoryAccessPrivate=0700, $lockMode=LOCK_EX, $linkBehaviour=self::SKIP_LINKS)
LocalConfig constructor.
const DISALLOW_LINKS
This is the default behaviour because links violate the root filesystem constraint.
Definition: LocalConfig.php:21