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
DownloadInteger.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\BackgroundTasks\Implementation\Tasks
;
20
21
use
ILIAS\BackgroundTasks\Bucket
;
22
use
ILIAS\BackgroundTasks\Implementation\Tasks\UserInteraction\UserInteractionOption
;
23
use
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\IntegerValue
;
24
use
ILIAS\BackgroundTasks\Task\UserInteraction\Option
;
25
use
ILIAS\BackgroundTasks\Types\SingleType
;
26
use
ILIAS\BackgroundTasks\Types\Type
;
27
use
ILIAS\BackgroundTasks\Value
;
28
35
class
DownloadInteger
extends
AbstractUserInteraction
36
{
41
public
function
getOptions
(array
$input
): array
42
{
43
return
[
44
new
UserInteractionOption
(
"download"
,
"download"
),
45
];
46
}
47
53
public
function
interaction
(array
$input
,
Option
$user_selected_option,
Bucket
$bucket):
Value
54
{
55
$integerValue = $input[0];
56
global
$DIC
;
57
58
if
($user_selected_option->
getValue
() ===
"download"
) {
59
$outputter = new \ilPHPOutputDelivery();
60
$outputter->start(
"IntegerFile"
);
61
echo $integerValue->getValue();
62
$outputter->stop();
63
}
64
65
return
$integerValue;
66
}
67
71
public
function
getInputTypes
(): array
72
{
73
return
[
74
new
SingleType
(IntegerValue::class),
75
];
76
}
77
78
public
function
getOutputType
():
Type
79
{
80
return
new
SingleType
(IntegerValue::class);
81
}
82
}
SingleType
ILIAS\BackgroundTasks\Implementation\Tasks\AbstractUserInteraction
Definition:
AbstractUserInteraction.php:29
ILIAS\BackgroundTasks\Implementation\Tasks\DownloadInteger\getOptions
getOptions(array $input)
Definition:
DownloadInteger.php:41
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\Task\UserInteraction\Option
Definition:
Option.php:27
ILIAS\BackgroundTasks\Implementation\Tasks\DownloadInteger
Definition:
DownloadInteger.php:35
ILIAS\BackgroundTasks\Implementation\Tasks\DownloadInteger\interaction
interaction(array $input, Option $user_selected_option, Bucket $bucket)
Definition:
DownloadInteger.php:53
ILIAS\BackgroundTasks\Value
Definition:
Value.php:29
ILIAS\BackgroundTasks\Bucket
Definition:
Bucket.php:29
ILIAS\BackgroundTasks\Types\Type
Definition:
Type.php:21
IntegerValue
ILIAS\BackgroundTasks\Types\SingleType
Definition:
SingleType.php:21
Bucket
$DIC
global $DIC
Definition:
shib_login.php:22
ILIAS\AdvancedMetaData\Data\FieldDefinition\Type
Type
Definition:
Type.php:23
ILIAS\BackgroundTasks\Implementation\Tasks\DownloadInteger\getInputTypes
getInputTypes()
Definition:
DownloadInteger.php:71
UserInteractionOption
ILIAS\BackgroundTasks\Implementation\Tasks\UserInteraction\UserInteractionOption
Definition:
UserInteractionOption.php:23
Value
ILIAS\BackgroundTasks\Implementation\Tasks\DownloadInteger\getOutputType
getOutputType()
Definition:
DownloadInteger.php:78
Option
ILIAS\BackgroundTasks\Task\UserInteraction\Option\getValue
getValue()
ILIAS\BackgroundTasks\Implementation\Tasks\AbstractTask\$input
array $input
Definition:
AbstractTask.php:44
components
ILIAS
BackgroundTasks
src
Implementation
Tasks
DownloadInteger.php
Generated on Thu Apr 3 2025 23:02:19 for ILIAS by
1.8.13 (using
Doxyfile
)