ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilSoapBackgroundTasksAdministration Class Reference
+ Inheritance diagram for ilSoapBackgroundTasksAdministration:
+ Collaboration diagram for ilSoapBackgroundTasksAdministration:

Public Member Functions

 __construct (bool $use_nusoap=true)
 
 runAsync (string $sid)
 
- Public Member Functions inherited from ilSoapAdministration
 __construct (bool $use_nusoap=true)
 
 getMessage ()
 
 appendMessage (string $a_str)
 
 setMessageCode (string $a_code)
 
 getMessageCode ()
 
 reInitUser ()
 
 isFault ($object)
 
 getInstallationInfoXML ()
 
 getClientInfoXML (string $clientid)
 

Additional Inherited Members

- Data Fields inherited from ilSoapAdministration
const NUSOAP = 1
 
const PHP5 = 2
 
int $error_method
 Defines type of error handling (PHP5 || NUSOAP) More...
 
- Protected Member Functions inherited from ilSoapAdministration
 checkSession (string $sid)
 
 explodeSid (string $sid)
 
 setMessage (string $a_str)
 
 initAuth (string $sid)
 
 initIlias ()
 
 initAuthenticationObject ()
 
 raiseError (string $a_message, $a_code)
 
 checkObjectAccess (int $ref_id, array $expected_type, string $permission, bool $returnObject=false)
 check access for ref id: expected type, permission, return object instance if returnobject is true More...
 
- Protected Attributes inherited from ilSoapAdministration
bool $soap_check = true
 
string $message = ''
 
string $message_code = ''
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilSoapBackgroundTasksAdministration::__construct ( bool  $use_nusoap = true)

Definition at line 26 of file class.ilSoapBackgroundTasksAdministration.php.

References ILIAS\GlobalScreen\Provider\__construct().

27  {
28  parent::__construct($use_nusoap);
29  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ runAsync()

ilSoapBackgroundTasksAdministration::runAsync ( string  $sid)
Returns
bool|soap_fault|SoapFault|null

Definition at line 34 of file class.ilSoapBackgroundTasksAdministration.php.

References $DIC, ilSoapAdministration\checkSession(), ilSoapAdministration\getMessage(), ilSoapAdministration\getMessageCode(), ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), ilSoapAdministration\raiseError(), and ILIAS\BackgroundTasks\Implementation\TaskManager\AsyncTaskManager\runAsync().

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  }
raiseError(string $a_message, $a_code)
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: