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
▼
ILIAS
Test List
Todo List
Deprecated List
►
Modules
►
Namespaces
►
Data Structures
▼
Files
►
File List
►
Globals
►
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilExerciseLP.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
4
11
class
ilExerciseLP
extends
ilObjectLP
12
{
13
public
static
function
getDefaultModes
($a_lp_active)
14
{
15
return
array(
16
ilLPObjSettings::LP_MODE_DEACTIVATED
,
17
ilLPObjSettings::LP_MODE_EXERCISE_RETURNED
18
);
19
}
20
21
public
function
getDefaultMode
()
22
{
23
return
ilLPObjSettings::LP_MODE_EXERCISE_RETURNED
;
24
}
25
26
public
function
getValidModes
()
27
{
28
return
array(
29
ilLPObjSettings::LP_MODE_DEACTIVATED
,
30
ilLPObjSettings::LP_MODE_EXERCISE_RETURNED
31
);
32
}
33
34
protected
static
function
isLPMember
(array &$a_res, $a_usr_id, $a_obj_ids)
35
{
36
global
$DIC
;
37
38
$ilDB
= $DIC->database();
39
40
$set =
$ilDB
->query(
"SELECT obj_id"
.
41
" FROM exc_members"
.
42
" WHERE "
.
$ilDB
->in(
"obj_id"
, $a_obj_ids,
""
,
"integer"
) .
43
" AND usr_id = "
.
$ilDB
->quote($a_usr_id,
"integer"
));
44
while
($row =
$ilDB
->fetchAssoc($set)) {
45
$a_res[$row[
"obj_id"
]] =
true
;
46
}
47
48
return
true
;
49
}
50
}
ilObjectLP
Definition:
class.ilObjectLP.php:14
ilExerciseLP\getValidModes
getValidModes()
Definition:
class.ilExerciseLP.php:26
ilExerciseLP\getDefaultMode
getDefaultMode()
Definition:
class.ilExerciseLP.php:21
ilLPObjSettings\LP_MODE_EXERCISE_RETURNED
const LP_MODE_EXERCISE_RETURNED
Definition:
class.ilLPObjSettings.php:34
ilExerciseLP
Definition:
class.ilExerciseLP.php:11
ilLPObjSettings\LP_MODE_DEACTIVATED
const LP_MODE_DEACTIVATED
Definition:
class.ilLPObjSettings.php:25
$ilDB
global $ilDB
Definition:
storeScorm2004.php:16
$DIC
$DIC
Definition:
xapitoken.php:46
ilExerciseLP\getDefaultModes
static getDefaultModes($a_lp_active)
Definition:
class.ilExerciseLP.php:13
ilExerciseLP\isLPMember
static isLPMember(array &$a_res, $a_usr_id, $a_obj_ids)
Definition:
class.ilExerciseLP.php:34
Modules
Exercise
classes
class.ilExerciseLP.php
Generated on Thu Apr 3 2025 20:00:49 for ILIAS by
1.8.13 (using
Doxyfile
)