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
SanitationReportJob.php
Go to the documentation of this file.
1
<?php
2
3
namespace
ILIAS\File\Sanitation
;
4
5
use
ILIAS\BackgroundTasks\Implementation\Tasks\AbstractJob
;
6
use
ILIAS\BackgroundTasks\Implementation\Values\AggregationValues\ListValue
;
7
use
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\IntegerValue
;
8
use
ILIAS\BackgroundTasks\Observer
;
9
use
ILIAS\BackgroundTasks\Types\ListType
;
10
use
ilObjFile
;
11
17
class
SanitationReportJob
extends
AbstractJob
18
{
19
public
function
run
(array
$input
,
Observer
$observer)
20
{
21
global
$DIC
;
22
23
$q =
"SELECT * FROM object_data WHERE type='file'"
;
24
$s = $DIC->database()->query($q);
25
26
$files_ids = [];
27
28
while
(
$data
= $DIC->database()->fetchObject($s)) {
29
$file_object =
new
ilObjFile
(
$data
->obj_id,
false
);
30
$san =
new
FilePathSanitizer
($file_object);
31
if
($san->needsSanitation()) {
32
$files_ids[] = (int)
$data
->obj_id;
33
}
34
}
35
36
$list =
new
ListValue
();
37
$list->setValue($files_ids);
38
39
return
$list;
40
}
41
42
43
public
function
isStateless
()
44
{
45
return
false
;
46
}
47
48
49
public
function
getExpectedTimeOfTaskInSeconds
()
50
{
51
return
3600;
52
}
53
54
55
public
function
getInputTypes
()
56
{
57
return
array();
58
}
59
60
61
public
function
getOutputType
()
62
{
63
return
new
ListType
(IntegerValue::class);
64
}
65
}
ListType
$data
$data
Definition:
storeScorm.php:23
ILIAS\BackgroundTasks\Implementation\Values\AggregationValues\ListValue
Definition:
ListValue.php:24
AbstractJob
Observer
ILIAS\File\Sanitation\SanitationReportJob\getExpectedTimeOfTaskInSeconds
getExpectedTimeOfTaskInSeconds()
Definition:
SanitationReportJob.php:49
ILIAS\File\Sanitation\SanitationReportJob\run
run(array $input, Observer $observer)
Definition:
SanitationReportJob.php:19
IntegerValue
ILIAS\BackgroundTasks\Observer
Definition:
Observer.php:5
ILIAS\File\Sanitation\FilePathSanitizer
Class FilePathSanitizer.
Definition:
FilePathSanitizer.php:17
ILIAS\BackgroundTasks\Implementation\Tasks\AbstractJob
Definition:
AbstractJob.php:14
ILIAS\File\Sanitation\SanitationReportJob\getInputTypes
getInputTypes()
Definition:
SanitationReportJob.php:55
ILIAS\File\Sanitation
Definition:
DownloadSanitationReportUserInteraction.php:3
ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask\$input
$input
Definition:
AbstractTask.php:28
ILIAS\File\Sanitation\SanitationReportJob
Class SanitationReportJob.
Definition:
SanitationReportJob.php:17
ILIAS\File\Sanitation\SanitationReportJob\isStateless
isStateless()
Definition:
SanitationReportJob.php:43
ilObjFile
$DIC
$DIC
Definition:
xapitoken.php:46
ListValue
ILIAS\BackgroundTasks\Types\ListType
Definition:
ListType.php:20
ILIAS\File\Sanitation\SanitationReportJob\getOutputType
getOutputType()
Definition:
SanitationReportJob.php:61
Modules
File
classes
Sanitation
SanitationReportJob.php
Generated on Tue Apr 8 2025 20:01:00 for ILIAS by
1.8.13 (using
Doxyfile
)