ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
e
f
g
h
i
j
l
m
n
p
r
s
t
u
w
+
Functions
_
a
b
c
e
f
g
h
i
m
n
p
r
s
t
u
w
Variables
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
§
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
§
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
(
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Modules
Pages
class.ilModulesOrgUnitExtractor.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
ilModulesOrgUnitExtractor
extends
ilBaseExtractor
15
{
22
public
function
extract
($event, $parameters)
23
{
24
$this->
ilExtractedParams
->
setSubjectType
(
'orgunit'
);
25
26
switch
($event) {
27
case
'assignUsersToEmployeeRole'
:
28
case
'assignUsersToSuperiorRole'
:
29
case
'deassignUserFromEmployeeRole'
:
30
case
'deassignUserFromSuperiorRole'
:
31
case
'assignUserToLocalRole'
:
32
case
'deassignUserFromLocalRole'
:
33
$this->
extractWithUser
($parameters);
34
break
;
35
case
'initDefaultRoles'
:
36
case
'delete'
:
37
$this->
extractWithoutUser
($parameters);
38
}
39
40
return
$this->ilExtractedParams
;
41
}
42
46
protected
function
extractWithUser
($parameters)
47
{
48
$this->
ilExtractedParams
->
setSubjectId
($parameters[
'obj_id'
]);
49
$this->
ilExtractedParams
->
setContextType
(
'usr_id'
);
50
$this->
ilExtractedParams
->
setContextId
($parameters[
'user_id'
]);
// usr_id in many other places
51
}
52
}
ilModulesOrgUnitExtractor
PhpIncludeInspection
Definition:
class.ilModulesOrgUnitExtractor.php:14
ilExtractedParams\setSubjectId
setSubjectId($subject_id)
Definition:
class.ilExtractedParams.php:52
ilBaseExtractor\extractWithoutUser
extractWithoutUser($parameters)
Definition:
class.ilBaseExtractor.php:50
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
ilModulesOrgUnitExtractor\extractWithUser
extractWithUser($parameters)
Definition:
class.ilModulesOrgUnitExtractor.php:46
ilModulesOrgUnitExtractor\extract
extract($event, $parameters)
Definition:
class.ilModulesOrgUnitExtractor.php:22
ilBaseExtractor
PhpIncludeInspection
Definition:
class.ilBaseExtractor.php:14
ilExtractedParams\setSubjectType
setSubjectType($subject_type)
Definition:
class.ilExtractedParams.php:36
Services
WorkflowEngine
classes
extractors
class.ilModulesOrgUnitExtractor.php
Generated on Tue Feb 25 2025 19:01:53 for ILIAS by
1.8.13 (using
Doxyfile
)