ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilSoapBackgroundTasksAdministration.php
Go to the documentation of this file.
1 <?php
2 
20 require_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 }
raiseError(string $a_message, $a_code)
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...