ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
CanCreateDirectoriesInDirectoryCondition.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 2019 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5
namespace
ILIAS\Setup
;
6
7
class
CanCreateDirectoriesInDirectoryCondition
extends
ExternalConditionObjective
8
{
9
const
PROBE_NAME
=
"probe_for_directory_creation"
;
10
11
public
function
__construct
($which)
12
{
13
return
parent::__construct
(
14
"Can create directories in '$which'"
,
15
function
(
Environment
$env) use ($which) :
bool
{
16
$probe = $which .
"/"
. self::PROBE_NAME;
17
if
(!@mkdir($probe, 0774)) {
18
return
false
;
19
}
20
rmdir($probe);
21
return
true
;
22
},
23
"ILIAS needs to be able to create directories in '$which'."
24
);
25
}
26
}
ILIAS\Setup\ExternalConditionObjective
A condition that can't be met by ILIAS itself needs to be met by some external means.
Definition:
ExternalConditionObjective.php:16
ILIAS\Setup\CanCreateDirectoriesInDirectoryCondition
Definition:
CanCreateDirectoriesInDirectoryCondition.php:7
ILIAS\Setup\CanCreateDirectoriesInDirectoryCondition\__construct
__construct($which)
Definition:
CanCreateDirectoriesInDirectoryCondition.php:11
ILIAS\Setup\CanCreateDirectoriesInDirectoryCondition\PROBE_NAME
const PROBE_NAME
Definition:
CanCreateDirectoriesInDirectoryCondition.php:9
ILIAS\Setup
Definition:
AchievementTracker.php:5
ILIAS\Setup\Environment
An environment holds resources to be used in the setup process.
Definition:
Environment.php:11
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:30
src
Setup
CanCreateDirectoriesInDirectoryCondition.php
Generated on Sun Apr 6 2025 20:01:38 for ILIAS by
1.8.13 (using
Doxyfile
)