ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ 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
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
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
CanCreateFilesInDirectoryCondition.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\Condition
;
6
7
use
ILIAS\Setup
;
8
9
class
CanCreateFilesInDirectoryCondition
extends
ExternalConditionObjective
10
{
11
const
PROBE_NAME
=
"probe_for_file_creation"
;
12
13
public
function
__construct
($which)
14
{
15
return
parent::__construct
(
16
"Can create files in '$which'"
,
17
function
(Setup\
Environment
$env) use ($which) :
bool
{
18
$probe = $which .
"/"
. self::PROBE_NAME;
19
if
(!@file_put_contents($probe, self::PROBE_NAME)) {
20
return
false
;
21
}
22
$success
= @file_get_contents($probe) == self::PROBE_NAME;
23
unlink($probe);
24
return
$success
;
25
},
26
"ILIAS needs to be able to create files in '$which'."
27
);
28
}
29
}
ILIAS\Setup\Condition\CanCreateFilesInDirectoryCondition\PROBE_NAME
const PROBE_NAME
Definition:
CanCreateFilesInDirectoryCondition.php:11
ILIAS\Setup\Condition\CanCreateFilesInDirectoryCondition
Definition:
CanCreateFilesInDirectoryCondition.php:9
$success
$success
Definition:
Utf8Test.php:86
ILIAS\Setup\Condition
Definition:
CanCreateDirectoriesInDirectoryCondition.php:5
ILIAS\Setup
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
AdminInteraction.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:40
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:16
ILIAS\Setup\Condition\CanCreateFilesInDirectoryCondition\__construct
__construct($which)
Definition:
CanCreateFilesInDirectoryCondition.php:13
src
Setup
Condition
CanCreateFilesInDirectoryCondition.php
Generated on Tue Apr 8 2025 21:02:13 for ILIAS by
1.8.13 (using
Doxyfile
)