ILIAS  release_8 Revision v8.24
class.ilSoapBackgroundTasksAdministration.php
Go to the documentation of this file.
1<?php
2
20require_once __DIR__ . "/../../../libs/composer/vendor/autoload.php";
21
24
26{
27 public function __construct(bool $use_nusoap = true)
28 {
29 parent::__construct($use_nusoap);
30 }
31
35 public function runAsync(string $sid)
36 {
37 ignore_user_abort(true);
38
39 $this->initAuth($sid);
40 $this->initIlias();
41
42 if (!$this->checkSession($sid)) {
43 return $this->raiseError($this->getMessage(), $this->getMessageCode());
44 }
45 global $DIC;
46 $tm = new AsyncTaskManager(
47 $DIC->backgroundTasks()->persistence()
48 );
49 $tm->runAsync();
50 return true;
51 }
52}
soap server Base class for all SOAP registered methods.
raiseError(string $a_message, $a_code)
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc