ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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
5include_once "Services/Object/classes/class.ilObjectLP.php";
6
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 $ilDB;
40
41 $set = $ilDB->query("SELECT obj_id".
42 " FROM exc_members".
43 " WHERE ".$ilDB->in("obj_id", $a_obj_ids, "", "integer").
44 " AND usr_id = ".$ilDB->quote($a_usr_id, "integer"));
45 while($row = $ilDB->fetchAssoc($set))
46 {
47 $a_res[$row["obj_id"]] = true;
48 }
49
50 return true;
51 }
52}
53
54?>
An exception for terminatinating execution or to throw for unit testing.
static isLPMember(array &$a_res, $a_usr_id, $a_obj_ids)
Find (lp-relevant) members for given object ids.
static getDefaultModes($a_lp_active)
Get available type-specific default modes (no administration needed)
global $ilDB