ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
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
}
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
$state
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition:
linkback.php:10
ILIAS\BackgroundTasks\Implementation\Bucket\State\USER_INTERACTION
const USER_INTERACTION
Definition:
State.php:19
ILIAS\BackgroundTasks\Implementation\Bucket\State\SCHEDULED
const SCHEDULED
Definition:
State.php:11
StateTranslator
$lng
global $lng
Definition:
privfeed.php:17
ilLanguage
language handling
Definition:
class.ilLanguage.php:26
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:244
Services
BackgroundTasks
classes
StateTranslator.php
Generated on Sat Jan 18 2025 19:01:27 for ILIAS by
1.8.13 (using
Doxyfile
)