ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
background task hub (aka ajax handler, GUI) More...
Public Member Functions | |
__construct () | |
Constructor. More... | |
executeCommand () | |
Execute current command. More... | |
isSOAPEnabled () | |
Is soap enabled? More... | |
Protected Member Functions | |
sendJson (stdClass $a_json) | |
Send Json to client. More... | |
validate () | |
Validate given task. More... | |
unblock () | |
Cancel all other tasks, start current one. More... | |
process () | |
Process current task. More... | |
progress () | |
Check progress of current task. More... | |
cancel () | |
Cancel current task. More... | |
deliver () | |
Deliver result. More... | |
Protected Attributes | |
$task | |
$handler | |
background task hub (aka ajax handler, GUI)
Definition at line 13 of file class.ilBackgroundTaskHub.php.
ilBackgroundTaskHub::__construct | ( | ) |
|
protected |
Cancel current task.
Definition at line 183 of file class.ilBackgroundTaskHub.php.
References ilBackgroundTask\STATUS_CANCELLING.
|
protected |
Deliver result.
Definition at line 193 of file class.ilBackgroundTaskHub.php.
ilBackgroundTaskHub::executeCommand | ( | ) |
Execute current command.
Definition at line 44 of file class.ilBackgroundTaskHub.php.
References $cmd, $ilCtrl, and exit.
ilBackgroundTaskHub::isSOAPEnabled | ( | ) |
Is soap enabled?
Definition at line 149 of file class.ilBackgroundTaskHub.php.
References $ilSetting, ilContext\CONTEXT_CRON, and ilContext\getType().
Referenced by process().
|
protected |
Process current task.
Definition at line 121 of file class.ilBackgroundTaskHub.php.
References $_COOKIE, array, isSOAPEnabled(), and ilBackgroundTask\STATUS_PROCESSING.
|
protected |
Check progress of current task.
Definition at line 162 of file class.ilBackgroundTaskHub.php.
References $result, ilBackgroundTaskJson\getProgressJson(), sendJson(), and ilBackgroundTask\STATUS_FINISHED.
|
protected |
Send Json to client.
stdClass | $a_json |
Definition at line 71 of file class.ilBackgroundTaskHub.php.
Referenced by progress(), unblock(), and validate().
|
protected |
Cancel all other tasks, start current one.
Definition at line 97 of file class.ilBackgroundTaskHub.php.
References $ilUser, $task, ilBackgroundTask\getActiveByUserId(), sendJson(), and ilBackgroundTask\STATUS_CANCELLING.
|
protected |
Validate given task.
Definition at line 79 of file class.ilBackgroundTaskHub.php.
References $_GET, $file, $handler, and sendJson().
|
protected |
Definition at line 16 of file class.ilBackgroundTaskHub.php.
Referenced by validate().
|
protected |
Definition at line 15 of file class.ilBackgroundTaskHub.php.
Referenced by unblock().