ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Background task JSON helper. More...
Static Public Member Functions | |
static | getFailedJson ($a_message) |
Get json for failed task. More... | |
static | getBlockedJson ($a_task_id) |
Get json for blocked task. More... | |
static | getProcessingJson ($a_task_id, $a_message, $a_steps) |
Get json for processing task. More... | |
static | getProgressJson (ilBackgroundTask $a_task, $a_finished_cmd=null, $a_finished_result=null) |
Get json for task progress. More... | |
static | getFinishedJson ($a_task_id, $a_cmd, $a_result) |
Get json for finished task. More... | |
Static Protected Member Functions | |
static | jsonSafeString ($a_text) |
Makes the specified string safe for JSON. More... | |
Background task JSON helper.
Definition at line 10 of file class.ilBackgroundTaskJson.php.
|
static |
Get json for blocked task.
int | $a_task_id |
Definition at line 38 of file class.ilBackgroundTaskJson.php.
References $lng.
Referenced by ilFolderDownloadBackgroundTaskHandler\init().
|
static |
Get json for failed task.
string | $a_message |
Definition at line 18 of file class.ilBackgroundTaskJson.php.
References $lng.
Referenced by ilFolderDownloadBackgroundTaskHandler\init().
|
static |
Get json for finished task.
int | $a_task_id | |
string | $a_cmd | |
string | $a_result |
Definition at line 112 of file class.ilBackgroundTaskJson.php.
Referenced by ilFolderDownloadBackgroundTaskHandler\init().
|
static |
Get json for processing task.
int | $a_task_id | |
string | $a_message | |
int | $a_steps |
Definition at line 62 of file class.ilBackgroundTaskJson.php.
References $lng.
Referenced by ilFolderDownloadBackgroundTaskHandler\init().
|
static |
Get json for task progress.
ilBackgroundTask | $a_message | |
string | $a_finished_cmd | |
string | $a_finished_result |
Definition at line 86 of file class.ilBackgroundTaskJson.php.
References ilBackgroundTask\getCurrentStep(), ilBackgroundTask\getStatus(), and ilBackgroundTask\getSteps().
Referenced by ilBackgroundTaskHub\progress().
|
staticprotected |
Makes the specified string safe for JSON.
string | $a_text |
Definition at line 130 of file class.ilBackgroundTaskJson.php.