ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 function getDefaultMode()
17  {
19  }
20 
21  public function getValidModes()
22  {
23  return array(
26  );
27  }
28 
29  protected static function isLPMember(array &$a_res, $a_usr_id, array $a_obj_ids)
30  {
31  global $ilDB;
32 
33  $set = $ilDB->query("SELECT obj_id".
34  " FROM exc_members".
35  " WHERE ".$ilDB->in("obj_id", $a_obj_ids, "", "integer").
36  " AND usr_id = ".$ilDB->quote($a_usr_id, "integer"));
37  while($row = $ilDB->fetchAssoc($set))
38  {
39  $a_res[$row["obj_id"]] = true;
40  }
41 
42  return true;
43  }
44 }
45 
46 ?>
static isLPMember(array &$a_res, $a_usr_id, array $a_obj_ids)
global $ilDB