ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilSCUtils.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
24 class ilSCUtils
25 {
26  public static function taskStatus2Text(int $a_status): string
27  {
28  global $DIC;
29 
30  $lng = $DIC->language();
31 
32  switch ($a_status) {
34  return $lng->txt('sysc_status_na');
35 
37  return $lng->txt('sysc_status_running');
38 
40  return $lng->txt('sysc_status_failed');
41 
43  return $lng->txt('sysc_status_completed');
44  }
45  return '';
46  }
47 }
Utilities for system check.
static taskStatus2Text(int $a_status)
const STATUS_FAILED
global $DIC
Definition: shib_login.php:22
const STATUS_IN_PROGRESS
const STATUS_COMPLETED
global $lng
Definition: privfeed.php:31
const STATUS_NOT_ATTEMPTED