ILIAS
trunk Revision v11.0_alpha-1689-g66c127b4ae8
◀ 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
class.ilFileServicesPreProcessor.php
Go to the documentation of this file.
1
<?php
2
19
use
ILIAS\FileUpload\Processor\BlacklistExtensionPreProcessor
;
20
use
ILIAS\FileUpload\DTO\Metadata
;
21
use
ILIAS\Filesystem\Stream\FileStream
;
22
use
ILIAS\FileUpload\DTO\ProcessingStatus
;
23
29
class
ilFileServicesPreProcessor
extends
BlacklistExtensionPreProcessor
30
{
31
public
function
__construct
(
32
private
ilFileServicesSettings
$settings,
33
string
$reason =
'Extension is blacklisted.'
34
) {
35
parent::__construct
($this->
settings
->getBlackListedSuffixes(), $reason);
36
}
37
38
#[\Override]
39
public
function
process
(
FileStream
$stream,
Metadata
$metadata):
ProcessingStatus
40
{
41
if
($this->
settings
->isByPassAllowedForCurrentUser()) {
42
return
new
ProcessingStatus
(ProcessingStatus::OK,
'Blacklist override by RBAC'
);
43
}
44
return
parent::process($stream, $metadata);
45
}
46
}
ILIAS\FileUpload\DTO\ProcessingStatus
Class ProcessingStatus.
Definition:
ProcessingStatus.php:34
ilFileServicesPreProcessor\process
process(FileStream $stream, Metadata $metadata)
Definition:
class.ilFileServicesPreProcessor.php:39
ilFileServicesSettings
Class ilObjFileServices.
Definition:
class.ilFileServicesSettings.php:26
BlacklistExtensionPreProcessor
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ProcessingStatus
ILIAS\Repository\settings
settings()
Definition:
trait.GlobalDICDomainServices.php:96
ILIAS\FileUpload\DTO\Metadata
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
FileStream
ilFileServicesPreProcessor\__construct
__construct(private ilFileServicesSettings $settings, string $reason='Extension is blacklisted.')
Definition:
class.ilFileServicesPreProcessor.php:31
ServicesInterface
ILIAS\Filesystem\Stream\FileStream
The base interface for all filesystem streams.
Definition:
FileStream.php:31
ILIAS\MetaData\Repository\Validation\Processor\BlacklistExtensionPreProcessor
Definition:
BlacklistExtensionPreProcessor.php:21
ilFileServicesPreProcessor
Class ilFileServicesPolicy.
Definition:
class.ilFileServicesPreProcessor.php:29
components
ILIAS
FileServices
classes
UploadService
class.ilFileServicesPreProcessor.php
Generated on Wed Apr 2 2025 23:02:51 for ILIAS by
1.8.13 (using
Doxyfile
)