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
StateTranslator.php
Go to the documentation of this file.
1
<?php
2
3
namespace
ILIAS\BackgroundTasks\Implementation\UI
;
4
5
use
ILIAS\BackgroundTasks\Implementation\Bucket\State
;
6
14
trait
StateTranslator
15
{
16
23
public
function
translateState($state, \
ilLanguage
$lng
)
24
{
25
switch
($state) {
26
case
State::SCHEDULED
:
27
return
$lng->
txt
(
"observer_state_scheduled"
);
28
case
State::RUNNING
:
29
return
$lng->
txt
(
"observer_state_running"
);
30
case
State::USER_INTERACTION
:
31
return
$lng->
txt
(
"observer_state_user_interaction"
);
32
case
State::FINISHED
:
33
return
$lng->
txt
(
"observer_state_finished"
);
34
case
State::ERROR
:
35
return
$lng->
txt
(
"observer_state_error"
);
36
}
37
}
38
}
ilLanguage
ILIAS\BackgroundTasks\Implementation\Bucket\State\RUNNING
const RUNNING
Definition:
State.php:15
ILIAS\BackgroundTasks\Implementation\Bucket\State\FINISHED
const FINISHED
Definition:
State.php:23
ILIAS\BackgroundTasks\Implementation\Bucket\State\ERROR
const ERROR
Definition:
State.php:27
ILIAS\BackgroundTasks\Implementation\UI
Definition:
StateTranslator.php:3
State
ILIAS\BackgroundTasks\Implementation\Bucket\State\USER_INTERACTION
const USER_INTERACTION
Definition:
State.php:19
$lng
$lng
Definition:
save_question_post_data.php:23
ILIAS\BackgroundTasks\Implementation\Bucket\State\SCHEDULED
const SCHEDULED
Definition:
State.php:11
StateTranslator
ilLanguage\txt
txt($a_topic, $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:257
Services
BackgroundTasks
classes
StateTranslator.php
Generated on Mon Apr 14 2025 21:01:13 for ILIAS by
1.8.13 (using
Doxyfile
)