ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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(
21  );
22  }
23 
24  public function getDefaultMode()
25  {
27  }
28 
29  public function getValidModes()
30  {
31  return array(
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 }
global $DIC
Definition: saml.php:7
$row
global $ilDB
static getDefaultModes($a_lp_active)
static isLPMember(array &$a_res, $a_usr_id, $a_obj_ids)