ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
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
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilAssQuestionProcessLockerFactory.php
Go to the documentation of this file.
1
<?php
2
25
class
ilAssQuestionProcessLockerFactory
26
{
30
protected
$settings
;
31
35
protected
$db
;
36
40
protected
$questionId
;
41
45
protected
$userId
;
46
50
protected
$assessmentLogEnabled
;
51
56
public
function
__construct
(
ilSetting
$settings
,
ilDBInterface
$db
)
57
{
58
$this->
settings
=
$settings
;
59
$this->db =
$db
;
60
61
$this->questionId = null;
62
$this->userId = null;
63
$this->assessmentLogEnabled =
false
;
64
}
65
69
public
function
setQuestionId
(
$questionId
): void
70
{
71
$this->questionId =
$questionId
;
72
}
73
77
public
function
getQuestionId
(): ?
int
78
{
79
return
$this->questionId
;
80
}
81
85
public
function
setUserId
(
$userId
): void
86
{
87
$this->userId =
$userId
;
88
}
89
93
public
function
getUserId
(): ?
int
94
{
95
return
$this->userId
;
96
}
97
101
public
function
setAssessmentLogEnabled
(
$assessmentLogEnabled
): void
102
{
103
$this->assessmentLogEnabled =
$assessmentLogEnabled
;
104
}
105
109
public
function
isAssessmentLogEnabled
(): bool
110
{
111
return
$this->assessmentLogEnabled
;
112
}
113
114
private
function
getLockModeSettingValue
(): ?string
115
{
116
return
$this->
settings
->get(
'ass_process_lock_mode'
,
ilObjAssessmentFolder::ASS_PROC_LOCK_MODE_NONE
);
117
}
118
122
public
function
getLocker
()
123
{
124
switch
($this->
getLockModeSettingValue
()) {
125
case
ilObjAssessmentFolder::ASS_PROC_LOCK_MODE_NONE
:
126
127
$locker =
new
ilAssQuestionProcessLockerNone
();
128
break
;
129
130
case
ilObjAssessmentFolder::ASS_PROC_LOCK_MODE_FILE
:
131
132
require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionProcessLockFileStorage.php'
;
133
$storage =
new
ilAssQuestionProcessLockFileStorage
($this->
getQuestionId
(), $this->
getUserId
());
134
$storage->create();
135
136
$locker =
new
ilAssQuestionProcessLockerFile
($storage);
137
break
;
138
139
case
ilObjAssessmentFolder::ASS_PROC_LOCK_MODE_DB
:
140
141
$locker =
new
ilAssQuestionProcessLockerDb
($this->db);
142
$locker->setAssessmentLogEnabled($this->
isAssessmentLogEnabled
());
143
break
;
144
}
145
146
return
$locker;
147
}
148
}
ilAssQuestionProcessLockFileStorage
Definition:
class.ilAssQuestionProcessLockFileStorage.php:24
ilAssQuestionProcessLockerFactory\setQuestionId
setQuestionId($questionId)
Definition:
class.ilAssQuestionProcessLockerFactory.php:69
ilAssQuestionProcessLockerFile
Definition:
class.ilAssQuestionProcessLockerFile.php:25
ilAssQuestionProcessLockerFactory\setUserId
setUserId($userId)
Definition:
class.ilAssQuestionProcessLockerFactory.php:85
ilObjAssessmentFolder\ASS_PROC_LOCK_MODE_DB
const ASS_PROC_LOCK_MODE_DB
Definition:
class.ilObjAssessmentFolder.php:34
ilAssQuestionProcessLockerFactory\setAssessmentLogEnabled
setAssessmentLogEnabled($assessmentLogEnabled)
Definition:
class.ilAssQuestionProcessLockerFactory.php:101
ilAssQuestionProcessLockerFactory\__construct
__construct(ilSetting $settings, ilDBInterface $db)
Definition:
class.ilAssQuestionProcessLockerFactory.php:56
ilAssQuestionProcessLockerFactory\$questionId
$questionId
Definition:
class.ilAssQuestionProcessLockerFactory.php:40
ilObjAssessmentFolder\ASS_PROC_LOCK_MODE_NONE
const ASS_PROC_LOCK_MODE_NONE
Definition:
class.ilObjAssessmentFolder.php:32
ilAssQuestionProcessLockerNone
Definition:
class.ilAssQuestionProcessLockerNone.php:25
ilAssQuestionProcessLockerFactory\getLockModeSettingValue
getLockModeSettingValue()
Definition:
class.ilAssQuestionProcessLockerFactory.php:114
ilAssQuestionProcessLockerFactory\$db
$db
Definition:
class.ilAssQuestionProcessLockerFactory.php:35
ilAssQuestionProcessLockerFactory\isAssessmentLogEnabled
isAssessmentLogEnabled()
Definition:
class.ilAssQuestionProcessLockerFactory.php:109
ilObjAssessmentFolder\ASS_PROC_LOCK_MODE_FILE
const ASS_PROC_LOCK_MODE_FILE
Definition:
class.ilObjAssessmentFolder.php:33
ilAssQuestionProcessLockerDb
Definition:
class.ilAssQuestionProcessLockerDb.php:25
ilDBInterface
ILIAS\Repository\settings
settings()
Definition:
trait.GlobalDICDomainServices.php:91
ilAssQuestionProcessLockerFactory\$assessmentLogEnabled
$assessmentLogEnabled
Definition:
class.ilAssQuestionProcessLockerFactory.php:50
ilAssQuestionProcessLockerFactory\$settings
$settings
Definition:
class.ilAssQuestionProcessLockerFactory.php:30
ilAssQuestionProcessLockerFactory\getUserId
getUserId()
Definition:
class.ilAssQuestionProcessLockerFactory.php:93
ilAssQuestionProcessLockerFactory\getLocker
getLocker()
Definition:
class.ilAssQuestionProcessLockerFactory.php:122
ilAssQuestionProcessLockerFactory\getQuestionId
getQuestionId()
Definition:
class.ilAssQuestionProcessLockerFactory.php:77
ilAssQuestionProcessLockerFactory\$userId
$userId
Definition:
class.ilAssQuestionProcessLockerFactory.php:45
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ilSetting
ilAssQuestionProcessLockerFactory
Definition:
class.ilAssQuestionProcessLockerFactory.php:25
Modules
TestQuestionPool
classes
class.ilAssQuestionProcessLockerFactory.php
Generated on Sun Apr 13 2025 22:01:48 for ILIAS by
1.8.13 (using
Doxyfile
)