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
StateTranslator.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\BackgroundTasks\Implementation\UI
;
20
21
use
ILIAS\BackgroundTasks\Implementation\Bucket\State
;
22
28
trait
StateTranslator
29
{
30
public
function
translateState(
int
$state, \
ilLanguage
$lng
): string
31
{
32
switch
($state) {
33
case
State::SCHEDULED
:
34
return
$lng->
txt
(
"observer_state_scheduled"
);
35
case
State::RUNNING
:
36
return
$lng->
txt
(
"observer_state_running"
);
37
case
State::USER_INTERACTION
:
38
return
$lng->
txt
(
"observer_state_user_interaction"
);
39
case
State::FINISHED
:
40
return
$lng->
txt
(
"observer_state_finished"
);
41
case
State::ERROR
:
42
return
$lng->
txt
(
"observer_state_error"
);
43
}
44
return
''
;
45
}
46
}
ilLanguage
ilLanguage\txt
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
Definition:
class.ilLanguage.php:172
ILIAS\BackgroundTasks\Implementation\Bucket\State\RUNNING
const RUNNING
Definition:
State.php:30
$lng
$lng
Definition:
save_question_post_data.php:24
ILIAS\BackgroundTasks\Implementation\Bucket\State\FINISHED
const FINISHED
Definition:
State.php:38
ILIAS\BackgroundTasks\Implementation\Bucket\State\ERROR
const ERROR
Definition:
State.php:42
ILIAS\BackgroundTasks\Implementation\UI
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
StateTranslator.php:19
State
ILIAS\BackgroundTasks\Implementation\Bucket\State\USER_INTERACTION
const USER_INTERACTION
Definition:
State.php:34
ILIAS\BackgroundTasks\Implementation\Bucket\State\SCHEDULED
const SCHEDULED
Definition:
State.php:26
StateTranslator
Services
BackgroundTasks
classes
StateTranslator.php
Generated on Tue Apr 1 2025 22:01:47 for ILIAS by
1.8.13 (using
Doxyfile
)