ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilSoapBackgroundTasksAdministration.php
Go to the documentation of this file.
1<?php
2
20require_once __DIR__ . "/../../../../vendor/composer/vendor/autoload.php";
21
23
25{
26 public function __construct(bool $use_nusoap = true)
27 {
28 parent::__construct($use_nusoap);
29 }
30
34 public function runAsync(string $sid)
35 {
36 ignore_user_abort(true);
37
38 $this->initAuth($sid);
39 $this->initIlias();
40
41 if (!$this->checkSession($sid)) {
42 return $this->raiseError($this->getMessage(), $this->getMessageCode());
43 }
44 global $DIC;
45 $tm = new AsyncTaskManager(
46 $DIC->backgroundTasks()->persistence()
47 );
48 $tm->runAsync();
49 return true;
50 }
51}
raiseError(string $a_message, $a_code)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26