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
PlusJob.php
Go to the documentation of this file.
1
<?php
2
3
namespace
ILIAS\BackgroundTasks\Implementation\Tasks
;
4
5
use
ILIAS\BackgroundTasks\Implementation\Bucket\BucketMock
;
6
use
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\IntegerValue
;
7
use
ILIAS\BackgroundTasks\Observer
;
8
use
ILIAS\BackgroundTasks\Types\SingleType
;
9
use
ILIAS\BackgroundTasks\Types\Type
;
10
use
ILIAS\BackgroundTasks\Value
;
11
12
class
PlusJob
extends
AbstractJob
13
{
14
21
public
function
__construct
()
22
{
23
}
24
25
29
public
function
getInputTypes
()
30
{
31
return
[
32
new
SingleType
(IntegerValue::class),
33
new
SingleType
(IntegerValue::class),
34
];
35
}
36
37
41
public
function
getOutputType
()
42
{
43
return
new
SingleType
(IntegerValue::class);
44
}
45
46
53
public
function
run
(array
$input
,
Observer
$observer)
54
{
56
$a
= $input[0];
58
$b
= $input[1];
59
60
$output
=
new
IntegerValue
();
61
$output
->setValue(
$a
->getValue() +
$b
->getValue());
62
63
return
$output
;
64
}
65
66
71
public
function
isStateless
()
72
{
73
return
true
;
74
}
75
76
80
public
function
getExpectedTimeOfTaskInSeconds
()
81
{
82
return
1;
83
}
84
}
SingleType
ILIAS\BackgroundTasks\Implementation\Tasks\PlusJob\__construct
__construct()
PlusJob constructor.
Definition:
PlusJob.php:21
ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask\$output
$output
Definition:
AbstractTask.php:32
ILIAS\BackgroundTasks\Implementation\Tasks
Definition:
AbstractJob.php:3
ILIAS\BackgroundTasks\Implementation\Tasks\PlusJob
Definition:
PlusJob.php:12
Observer
ILIAS\BackgroundTasks\Task\Job\run
run(array $input, Observer $observer)
IntegerValue
ILIAS\BackgroundTasks\Types\SingleType
Definition:
SingleType.php:5
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\IntegerValue
Definition:
IntegerValue.php:7
ILIAS\BackgroundTasks\Observer
Definition:
Observer.php:5
ILIAS\BackgroundTasks\Implementation\Tasks\AbstractJob
Definition:
AbstractJob.php:14
ILIAS\BackgroundTasks\Implementation\Tasks\PlusJob\getOutputType
getOutputType()
Definition:
PlusJob.php:41
ILIAS\BackgroundTasks\Implementation\Tasks\PlusJob\getExpectedTimeOfTaskInSeconds
getExpectedTimeOfTaskInSeconds()
Definition:
PlusJob.php:80
ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask\$input
$input
Definition:
AbstractTask.php:28
ILIAS\BackgroundTasks\Implementation\Tasks\PlusJob\isStateless
isStateless()
Definition:
PlusJob.php:71
Vendor\Package\$b
$b
Definition:
example_cleaned.php:31
BucketMock
Vendor\Package\$a
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples
Definition:
example_cleaned.php:31
Type
Value
ILIAS\BackgroundTasks\Implementation\Tasks\PlusJob\getInputTypes
getInputTypes()
Definition:
PlusJob.php:29
src
BackgroundTasks
Implementation
Tasks
PlusJob.php
Generated on Sat Apr 5 2025 21:01:43 for ILIAS by
1.8.13 (using
Doxyfile
)