ILIAS
trunk Revision v11.0_alpha-1769-g99a433fe2dc
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
CanCreateDirectoriesInDirectoryCondition.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Setup\Condition
;
22
23
use
ILIAS\Setup
;
24
25
class
CanCreateDirectoriesInDirectoryCondition
extends
ExternalConditionObjective
26
{
27
public
const
PROBE_NAME
=
"probe_for_directory_creation"
;
28
29
public
function
__construct
(
string
$which)
30
{
31
return
parent::__construct
(
32
"Can create directories in '$which'"
,
33
function
(
Setup
\
Environment
$env) use ($which):
bool
{
34
$probe = $which .
"/"
. self::PROBE_NAME;
35
if
(!@mkdir($probe, 0774)) {
36
return
false
;
37
}
38
rmdir($probe);
39
return
true
;
40
},
41
"ILIAS needs to be able to create directories in '$which'."
42
);
43
}
44
}
ILIAS\Setup\Condition\CanCreateDirectoriesInDirectoryCondition\__construct
__construct(string $which)
Definition:
CanCreateDirectoriesInDirectoryCondition.php:29
ILIAS\Setup\Condition\CanCreateDirectoriesInDirectoryCondition\PROBE_NAME
const PROBE_NAME
Definition:
CanCreateDirectoriesInDirectoryCondition.php:27
ILIAS\Setup\Condition\CanCreateDirectoriesInDirectoryCondition
Definition:
CanCreateDirectoriesInDirectoryCondition.php:25
ILIAS\Setup\Condition
Definition:
CanCreateDirectoriesInDirectoryCondition.php:21
ILIAS\Setup
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilMysqlMyIsamToInnoDbMigration.php:19
ILIAS\Setup\Environment
An environment holds resources to be used in the setup process.
Definition:
Environment.php:27
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
ILIAS\Setup\Condition\ExternalConditionObjective
A condition that can't be met by ILIAS itself needs to be met by some external means.
Definition:
ExternalConditionObjective.php:32
ILIAS\Setup
Definition:
Setup.php:25
components
ILIAS
Setup
src
Condition
CanCreateDirectoriesInDirectoryCondition.php
Generated on Sun Apr 13 2025 23:03:41 for ILIAS by
1.8.13 (using
Doxyfile
)