ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ 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
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
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
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
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilAssQuestionLomLifecycle.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
13
class
ilAssQuestionLomLifecycle
14
{
15
const
DRAFT
=
'draft'
;
16
const
FINAL
=
'final'
;
17
const
REVISED
=
'revised'
;
18
const
UNAVAILABLE
=
'unavailable'
;
19
23
protected
$identifier
;
24
30
public
function
__construct
(
$identifier
=
''
)
31
{
32
if
(strlen(
$identifier
)) {
33
$identifier
= strtolower(
$identifier
);
34
$this->
validateIdentifier
(
$identifier
);
35
$this->
setIdentifier
(
$identifier
);
36
}
37
}
38
42
public
function
getIdentifier
()
43
{
44
return
$this->identifier
;
45
}
46
51
public
function
setIdentifier
(
$identifier
)
52
{
53
$this->
validateIdentifier
(
$identifier
);
54
$this->identifier =
$identifier
;
55
}
56
60
public
function
getValidIdentifiers
()
61
{
62
return
[self::DRAFT, self::FINAL, self::REVISED, self::UNAVAILABLE];
63
}
64
69
public
function
validateIdentifier
(
$identifier
)
70
{
71
if
(!in_array(
$identifier
, $this->
getValidIdentifiers
())) {
72
throw
new
ilTestQuestionPoolInvalidArgumentException
(
73
'invalid lom lifecycle given: '
.
$identifier
74
);
75
}
76
}
77
81
public
function
getMappedIliasLifecycleIdentifer
()
82
{
83
switch
($this->
getIdentifier
()) {
84
case
self::UNAVAILABLE:
85
86
return
ilAssQuestionLifecycle::OUTDATED
;
87
88
case
self::REVISED:
89
case
self::FINAL:
90
91
return
ilAssQuestionLifecycle::FINAL
;
92
93
case
self::DRAFT:
94
default
:
95
96
return
ilAssQuestionLifecycle::DRAFT
;
97
98
}
99
}
100
}
ilAssQuestionLomLifecycle\REVISED
const REVISED
Definition:
class.ilAssQuestionLomLifecycle.php:17
ilAssQuestionLomLifecycle\$identifier
$identifier
Definition:
class.ilAssQuestionLomLifecycle.php:23
ilAssQuestionLifecycle\OUTDATED
const OUTDATED
Definition:
class.ilAssQuestionLifecycle.php:20
ilAssQuestionLomLifecycle
Definition:
class.ilAssQuestionLomLifecycle.php:13
ilAssQuestionLomLifecycle\setIdentifier
setIdentifier($identifier)
Definition:
class.ilAssQuestionLomLifecycle.php:51
ilAssQuestionLomLifecycle\getValidIdentifiers
getValidIdentifiers()
Definition:
class.ilAssQuestionLomLifecycle.php:60
ilAssQuestionLomLifecycle\FINAL
const FINAL
Definition:
class.ilAssQuestionLomLifecycle.php:16
ilAssQuestionLomLifecycle\validateIdentifier
validateIdentifier($identifier)
Definition:
class.ilAssQuestionLomLifecycle.php:69
ilAssQuestionLomLifecycle\UNAVAILABLE
const UNAVAILABLE
Definition:
class.ilAssQuestionLomLifecycle.php:18
ilAssQuestionLomLifecycle\getMappedIliasLifecycleIdentifer
getMappedIliasLifecycleIdentifer()
Definition:
class.ilAssQuestionLomLifecycle.php:81
ilAssQuestionLifecycle\DRAFT
const DRAFT
Definition:
class.ilAssQuestionLifecycle.php:15
ilAssQuestionLomLifecycle\DRAFT
const DRAFT
Definition:
class.ilAssQuestionLomLifecycle.php:15
ilAssQuestionLomLifecycle\__construct
__construct($identifier='')
ilAssQuestionLomLifecycle constructor.
Definition:
class.ilAssQuestionLomLifecycle.php:30
ilAssQuestionLifecycle\FINAL
const FINAL
Definition:
class.ilAssQuestionLifecycle.php:18
ilAssQuestionLomLifecycle\getIdentifier
getIdentifier()
Definition:
class.ilAssQuestionLomLifecycle.php:42
ilTestQuestionPoolInvalidArgumentException
Definition:
exception.ilTestQuestionPoolInvalidArgumentException.php:13
Modules
TestQuestionPool
classes
questions
class.ilAssQuestionLomLifecycle.php
Generated on Mon Apr 7 2025 20:01:11 for ILIAS by
1.8.13 (using
Doxyfile
)