ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
StateTranslator.php
Go to the documentation of this file.
1 <?php
2 
4 
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");
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 }
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10
global $lng
Definition: privfeed.php:17
language handling
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...