ILIAS
release_8 Revision v8.19
◀ 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
n
o
p
r
s
t
u
v
w
x
+
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
j
l
m
p
s
t
u
+
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
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
PlusJob.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\BackgroundTasks\Implementation\Tasks
;
20
21
use
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\IntegerValue
;
22
use
ILIAS\BackgroundTasks\Observer
;
23
use
ILIAS\BackgroundTasks\Types\SingleType
;
24
use
ILIAS\BackgroundTasks\Types\Type
;
25
use
ILIAS\BackgroundTasks\Value
;
26
27
class
PlusJob
extends
AbstractJob
28
{
32
public
function
getInputTypes
(): array
33
{
34
return
[
35
new
SingleType
(IntegerValue::class),
36
new
SingleType
(IntegerValue::class),
37
];
38
}
39
40
public
function
getOutputType
():
Type
41
{
42
return
new
SingleType
(IntegerValue::class);
43
}
44
49
public
function
run
(array
$input
,
Observer
$observer):
Value
50
{
52
$a
= $input[0];
54
$b
= $input[1];
55
56
$output
=
new
IntegerValue
();
57
$output
->setValue(
$a
->getValue() +
$b
->getValue());
58
59
return
$output
;
60
}
61
66
public
function
isStateless
(): bool
67
{
68
return
true
;
69
}
70
74
public
function
getExpectedTimeOfTaskInSeconds
():
int
75
{
76
return
1;
77
}
78
}
ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask\$output
ILIAS BackgroundTasks Value $output
Definition:
AbstractTask.php:45
SingleType
ILIAS\BackgroundTasks\Implementation\Tasks
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
AbstractJob.php:19
ILIAS\BackgroundTasks\Value
Definition:
Value.php:29
ILIAS\BackgroundTasks\Implementation\Tasks\PlusJob
Definition:
PlusJob.php:27
ILIAS\BackgroundTasks\Types\Type
Definition:
Type.php:21
Observer
ILIAS\BackgroundTasks\Task\Job\run
run(array $input, Observer $observer)
IntegerValue
ILIAS\BackgroundTasks\Types\SingleType
Definition:
SingleType.php:21
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\IntegerValue
Definition:
IntegerValue.php:24
ILIAS\BackgroundTasks\Observer
Definition:
Observer.php:21
ILIAS\BackgroundTasks\Implementation\Tasks\AbstractJob
Definition:
AbstractJob.php:28
ILIAS\BackgroundTasks\Implementation\Tasks\PlusJob\getOutputType
getOutputType()
Definition:
PlusJob.php:40
ILIAS\BackgroundTasks\Implementation\Tasks\PlusJob\getExpectedTimeOfTaskInSeconds
getExpectedTimeOfTaskInSeconds()
Definition:
PlusJob.php:74
ILIAS\BackgroundTasks\Implementation\Tasks\PlusJob\isStateless
isStateless()
Definition:
PlusJob.php:66
Vendor\Package\$b
$b
Definition:
example_cleaned.php:49
Vendor\Package\$a
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples
Definition:
example_cleaned.php:49
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
Type
Value
ILIAS\BackgroundTasks\Implementation\Tasks\PlusJob\getInputTypes
getInputTypes()
Definition:
PlusJob.php:32
ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask\$input
array $input
Definition:
AbstractTask.php:44
src
BackgroundTasks
Implementation
Tasks
PlusJob.php
Generated on Tue Apr 1 2025 22:02:41 for ILIAS by
1.8.13 (using
Doxyfile
)