ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilServicesUserExtractor.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3
5
require_once
'./Services/WorkflowEngine/classes/extractors/class.ilBaseExtractor.php'
;
6
14
class
ilServicesUserExtractor
extends
ilBaseExtractor
15
{
22
public
function
extract
($event, $parameters)
23
{
24
$this->
ilExtractedParams
->
setSubjectType
(
'user'
);
25
26
switch
($event)
27
{
28
case
'afterCreate'
:
29
case
'afterUpdate'
:
30
$this->
extractUser
($parameters);
31
break
;
32
case
'deleteUser'
:
33
$this->
extractUserById
($parameters);
34
}
35
36
return
$this->ilExtractedParams
;
37
}
38
42
protected
function
extractUser
($parameters)
43
{
44
$this->
ilExtractedParams
->
setSubjectId
($parameters[
'user_obj'
]->getId());
45
$this->
ilExtractedParams
->
setContextType
(
'null'
);
46
$this->
ilExtractedParams
->
setContextId
(0);
47
}
48
52
protected
function
extractUserById
($parameters)
53
{
54
$this->
ilExtractedParams
->
setSubjectId
($parameters[
'usr_id'
]);
55
$this->
ilExtractedParams
->
setContextType
(
'null'
);
56
$this->
ilExtractedParams
->
setContextId
(0);
57
}
58
}
ilExtractedParams\setSubjectId
setSubjectId($subject_id)
Definition:
class.ilExtractedParams.php:52
ilExtractedParams\setContextType
setContextType($context_type)
Definition:
class.ilExtractedParams.php:68
ilBaseExtractor\$ilExtractedParams
$ilExtractedParams
Definition:
class.ilBaseExtractor.php:17
ilExtractedParams
Class ilExtractedParams.
Definition:
class.ilExtractedParams.php:11
ilExtractedParams\setContextId
setContextId($context_id)
Definition:
class.ilExtractedParams.php:84
ilServicesUserExtractor\extractUser
extractUser($parameters)
Definition:
class.ilServicesUserExtractor.php:42
ilServicesUserExtractor\extract
extract($event, $parameters)
Definition:
class.ilServicesUserExtractor.php:22
ilBaseExtractor
PhpIncludeInspection
Definition:
class.ilBaseExtractor.php:14
php
ilExtractedParams\setSubjectType
setSubjectType($subject_type)
Definition:
class.ilExtractedParams.php:36
ilServicesUserExtractor\extractUserById
extractUserById($parameters)
Definition:
class.ilServicesUserExtractor.php:52
ilServicesUserExtractor
PhpIncludeInspection
Definition:
class.ilServicesUserExtractor.php:14
Services
WorkflowEngine
classes
extractors
class.ilServicesUserExtractor.php
Generated on Fri Jan 24 2025 19:01:17 for ILIAS by
1.8.13 (using
Doxyfile
)