ILIAS  release_8 Revision v8.23
ilSCUtils Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilSCUtils:

Static Public Member Functions

static taskStatus2Text (int $a_status)
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Utilities for system check

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e

Definition at line 24 of file class.ilSCUtils.php.

Member Function Documentation

◆ taskStatus2Text()

static ilSCUtils::taskStatus2Text ( int  $a_status)
static

Definition at line 26 of file class.ilSCUtils.php.

References $DIC, $lng, ilSCTask\STATUS_COMPLETED, ilSCTask\STATUS_FAILED, ilSCTask\STATUS_IN_PROGRESS, and ilSCTask\STATUS_NOT_ATTEMPTED.

Referenced by ilSCTaskTableGUI\fillRow().

26  : 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  }
46  return '';
47  }
$lng
const STATUS_FAILED
global $DIC
Definition: feed.php:28
const STATUS_IN_PROGRESS
const STATUS_COMPLETED
const STATUS_NOT_ATTEMPTED
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: