ILIAS
Release_4_4_x_branch Revision 61816
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
class.ilTestLP.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
include_once
"Services/Object/classes/class.ilObjectLP.php"
;
5
13
class
ilTestLP
extends
ilObjectLP
14
{
15
public
function
getDefaultMode
()
16
{
17
return
ilLPObjSettings::LP_MODE_TEST_PASSED
;
18
}
19
20
public
function
getValidModes
()
21
{
22
return
array(
23
ilLPObjSettings::LP_MODE_DEACTIVATED
,
24
ilLPObjSettings::LP_MODE_TEST_FINISHED
,
25
ilLPObjSettings::LP_MODE_TEST_PASSED
26
);
27
}
28
29
public
function
isAnonymized
()
30
{
31
include_once
'./Modules/Test/classes/class.ilObjTest.php'
;
32
return
(
bool
)
ilObjTest::_lookupAnonymity
($this->obj_id);
33
}
34
35
protected
function
resetCustomLPDataForUserIds
(array $a_user_ids, $a_recursive =
true
)
36
{
37
require_once
'Services/Object/classes/class.ilObjectFactory.php'
;
38
$testOBJ =
ilObjectFactory::getInstanceByObjId
($this->obj_id);
39
40
$testOBJ->removeTestResultsByUserIds($a_user_ids);
41
}
42
}
43
44
?>
Modules
Test
classes
class.ilTestLP.php
Generated on Wed Apr 27 2016 20:01:24 for ILIAS by
1.8.1.2 (using
Doxyfile
)