ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
StateTranslator.php
Go to the documentation of this file.
1<?php
2
20
22
28trait StateTranslator
29{
30 public function translateState(int $state, \ilLanguage $lng): string
31 {
32 return match ($state) {
33 State::SCHEDULED => $lng->txt("observer_state_scheduled"),
34 State::RUNNING => $lng->txt("observer_state_running"),
35 State::USER_INTERACTION => $lng->txt("observer_state_user_interaction"),
36 State::FINISHED => $lng->txt("observer_state_finished"),
37 State::ERROR => $lng->txt("observer_state_error"),
38 default => '',
39 };
40 }
41}
language handling
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $lng
Definition: privfeed.php:31