ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
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
5
include_once
"Services/Object/classes/class.ilObjectLP.php"
;
6
14
class
ilExerciseLP
extends
ilObjectLP
15
{
16
public
static
function
getDefaultModes
($a_lp_active)
17
{
18
return
array(
19
ilLPObjSettings::LP_MODE_DEACTIVATED
,
20
ilLPObjSettings::LP_MODE_EXERCISE_RETURNED
21
);
22
}
23
24
public
function
getDefaultMode
()
25
{
26
return
ilLPObjSettings::LP_MODE_EXERCISE_RETURNED
;
27
}
28
29
public
function
getValidModes
()
30
{
31
return
array(
32
ilLPObjSettings::LP_MODE_DEACTIVATED
,
33
ilLPObjSettings::LP_MODE_EXERCISE_RETURNED
34
);
35
}
36
37
protected
static
function
isLPMember
(array &$a_res, $a_usr_id, $a_obj_ids)
38
{
39
global
$DIC
;
40
41
$ilDB
= $DIC->database();
42
43
$set =
$ilDB
->query(
"SELECT obj_id"
.
44
" FROM exc_members"
.
45
" WHERE "
.
$ilDB
->in(
"obj_id"
, $a_obj_ids,
""
,
"integer"
) .
46
" AND usr_id = "
.
$ilDB
->quote($a_usr_id,
"integer"
));
47
while
(
$row
=
$ilDB
->fetchAssoc($set)) {
48
$a_res[
$row
[
"obj_id"
]] =
true
;
49
}
50
51
return
true
;
52
}
53
}
ilObjectLP
Definition:
class.ilObjectLP.php:14
ilExerciseLP\getValidModes
getValidModes()
Definition:
class.ilExerciseLP.php:29
$DIC
global $DIC
Definition:
saml.php:7
ilExerciseLP\getDefaultMode
getDefaultMode()
Definition:
class.ilExerciseLP.php:24
ilLPObjSettings\LP_MODE_EXERCISE_RETURNED
const LP_MODE_EXERCISE_RETURNED
Definition:
class.ilLPObjSettings.php:34
ilExerciseLP
Definition:
class.ilExerciseLP.php:14
$row
$row
Definition:
migrateto20.php:360
ilLPObjSettings\LP_MODE_DEACTIVATED
const LP_MODE_DEACTIVATED
Definition:
class.ilLPObjSettings.php:25
$ilDB
global $ilDB
Definition:
storeScorm2004.php:16
ilExerciseLP\getDefaultModes
static getDefaultModes($a_lp_active)
Definition:
class.ilExerciseLP.php:16
php
ilExerciseLP\isLPMember
static isLPMember(array &$a_res, $a_usr_id, $a_obj_ids)
Definition:
class.ilExerciseLP.php:37
Modules
Exercise
classes
class.ilExerciseLP.php
Generated on Thu Jan 16 2025 19:02:02 for ILIAS by
1.8.13 (using
Doxyfile
)