ILIAS
trunk Revision v11.0_alpha-1843-g9e1fad99175
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
class.DomainService.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Survey\Execution
;
22
23
use
ILIAS\Survey\InternalDomainService
;
24
use
ILIAS\Survey\InternalRepoService
;
25
29
class
DomainService
30
{
31
protected
InternalRepoService
$repo_service
;
32
protected
InternalDomainService
$domain_service
;
33
34
protected
static
array
$managers
= [];
35
36
public
function
__construct
(
37
InternalRepoService
$repo_service,
38
InternalDomainService
$domain_service
39
) {
40
$this->domain_service =
$domain_service
;
41
$this->repo_service =
$repo_service
;
42
}
43
44
public
function
run
(
45
\
ilObjSurvey
$survey,
46
int
$user_id
,
47
int
$appraisee_id = 0
48
):
RunManager
{
49
$appraisee_id = ($survey->
getMode
() ===
\ilObjSurvey::MODE_SELF_EVAL
)
50
? $user_id
51
: $appraisee_id;
52
if
(!isset(self::$managers[RunManager::class][$survey->
getId
()][
$user_id
][$appraisee_id])) {
53
self::$managers[RunManager::class][$survey->
getId
()][
$user_id
][$appraisee_id] =
54
new
RunManager
(
55
$this->repo_service,
56
$this->domain_service,
57
$survey,
58
$user_id,
59
$appraisee_id
60
);
61
}
62
return
self::$managers[RunManager::class][$survey->
getId
()][
$user_id
][$appraisee_id];
63
}
64
}
ilObjSurvey\MODE_SELF_EVAL
const MODE_SELF_EVAL
Definition:
class.ilObjSurvey.php:47
ILIAS\Survey\Execution\DomainService
Definition:
class.DomainService.php:29
ilObjSurvey\getMode
getMode()
Definition:
class.ilObjSurvey.php:5588
ilObjSurvey
Definition:
class.ilObjSurvey.php:26
$user_id
int $user_id
Definition:
trait.ilExAssignmentTypeGUIBase.php:38
ILIAS\Survey\Execution\DomainService\run
run(\ilObjSurvey $survey, int $user_id, int $appraisee_id=0)
Definition:
class.DomainService.php:44
ILIAS\Survey\Execution\DomainService\__construct
__construct(InternalRepoService $repo_service, InternalDomainService $domain_service)
Definition:
class.DomainService.php:36
InternalDomainService
ILIAS\Survey\InternalRepoService
Survey internal data service.
Definition:
class.InternalRepoService.php:31
ilObject\getId
getId()
Definition:
class.ilObject.php:294
InternalRepoService
ILIAS\Survey\Execution\DomainService\$repo_service
InternalRepoService $repo_service
Definition:
class.DomainService.php:31
ILIAS\Survey\Execution\DomainService\$domain_service
InternalDomainService $domain_service
Definition:
class.DomainService.php:32
ILIAS\Survey\Execution\RunManager
Survey Run Note: The manager should get the current user id passed.
Definition:
class.RunManager.php:34
ILIAS\Survey\InternalDomainService
Definition:
class.InternalDomainService.php:31
ILIAS\Survey\Execution\DomainService\$managers
static array $managers
Definition:
class.DomainService.php:34
ILIAS\Survey\Execution
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.DataFactory.php:21
components
ILIAS
Survey
Execution
Service
class.DomainService.php
Generated on Sun Apr 20 2025 23:02:54 for ILIAS by
1.8.13 (using
Doxyfile
)