ILIAS  Release_4_4_x_branch Revision 61816
 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  {
18  }
19 
20  public function getValidModes()
21  {
22  return array(
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 ?>