ILIAS
trunk Revision v11.0_alpha-1702-gfd3ecb7f852
◀ 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
ConcatenationJob.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\BackgroundTasks\Implementation\Tasks\Aggregation
;
20
21
use
ILIAS\BackgroundTasks\Implementation\Tasks\AbstractJob
;
22
use
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\ScalarValue
;
23
use
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\StringValue
;
24
use
ILIAS\BackgroundTasks\Observer
;
25
use
ILIAS\BackgroundTasks\Types\ListType
;
26
use
ILIAS\BackgroundTasks\Types\SingleType
;
27
use
ILIAS\BackgroundTasks\Types\Type
;
28
use
ILIAS\BackgroundTasks\Value
;
29
30
class
ConcatenationJob
extends
AbstractJob
31
{
36
public
function
run
(array
$input
,
Observer
$observer):
Value
37
{
39
$list = $input[0]->getList();
41
$values =
array_map
(
42
fn(
$a
) =>
$a
->getValue(),
43
$list
44
);
45
46
$string_value =
new
StringValue
();
47
$string_value->setValue(implode(
', '
, $values));
48
49
return
$string_value;
50
}
51
56
public
function
isStateless
(): bool
57
{
58
return
true
;
59
}
60
61
public
function
getId
(): string
62
{
63
return
static::class;
64
}
65
69
public
function
getInputTypes
(): array
70
{
71
return
[
new
ListType
(ScalarValue::class)];
72
}
73
74
public
function
getOutputType
():
Type
75
{
76
return
new
SingleType
(StringValue::class);
77
}
78
82
public
function
getExpectedTimeOfTaskInSeconds
():
int
83
{
84
return
1;
85
}
86
}
SingleType
ILIAS\BackgroundTasks\Implementation\Tasks\Aggregation\ConcatenationJob\isStateless
isStateless()
Definition:
ConcatenationJob.php:56
ILIAS\BackgroundTasks\Implementation\Tasks\Aggregation\ConcatenationJob\getOutputType
getOutputType()
Definition:
ConcatenationJob.php:74
ILIAS\BackgroundTasks\Implementation\Tasks\Aggregation\ConcatenationJob\getInputTypes
getInputTypes()
Definition:
ConcatenationJob.php:69
ListType
ILIAS\BackgroundTasks\Implementation\Tasks\Aggregation\ConcatenationJob\getExpectedTimeOfTaskInSeconds
getExpectedTimeOfTaskInSeconds()
int the amount of seconds this task usually taskes. If your task-duration scales with the the amount ...
Definition:
ConcatenationJob.php:82
array_map
StringValue
ILIAS\BackgroundTasks\Value
Definition:
Value.php:29
ILIAS\BackgroundTasks\Types\Type
Definition:
Type.php:21
ILIAS\BackgroundTasks\Implementation\Tasks\Aggregation\ConcatenationJob
Definition:
ConcatenationJob.php:30
AbstractJob
Observer
ScalarValue
ILIAS\BackgroundTasks\Task\Job\run
run(array $input, Observer $observer)
ILIAS\BackgroundTasks\Types\SingleType
Definition:
SingleType.php:21
ILIAS\BackgroundTasks\Implementation\Tasks\Aggregation
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
ConcatenationJob.php:19
ILIAS\BackgroundTasks\Observer
Definition:
Observer.php:21
ILIAS\BackgroundTasks\Implementation\Tasks\AbstractJob
Definition:
AbstractJob.php:28
ILIAS\AdvancedMetaData\Data\FieldDefinition\Type
Type
Definition:
Type.php:23
ILIAS\BackgroundTasks\Implementation\Tasks\Aggregation\ConcatenationJob\getId
getId()
Definition:
ConcatenationJob.php:61
Vendor\Package\$a
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples
Definition:
example_cleaned.php:49
ILIAS\BackgroundTasks\Types\ListType
Definition:
ListType.php:31
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\StringValue
Definition:
StringValue.php:23
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
Value
ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask\$input
array $input
Definition:
AbstractTask.php:44
components
ILIAS
BackgroundTasks
src
Implementation
Tasks
Aggregation
ConcatenationJob.php
Generated on Thu Apr 3 2025 23:02:19 for ILIAS by
1.8.13 (using
Doxyfile
)