ILIAS  release_7 Revision v7.30-3-g800a261c036
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
12{
13 public static function getDefaultModes($a_lp_active)
14 {
15 return array(
18 );
19 }
20
21 public function getDefaultMode()
22 {
24 }
25
26 public function getValidModes()
27 {
28 return array(
31 );
32 }
33
34 protected static function isLPMember(array &$a_res, $a_usr_id, $a_obj_ids)
35 {
36 global $DIC;
37
38 $ilDB = $DIC->database();
39
40 $set = $ilDB->query("SELECT obj_id" .
41 " FROM exc_members" .
42 " WHERE " . $ilDB->in("obj_id", $a_obj_ids, "", "integer") .
43 " AND usr_id = " . $ilDB->quote($a_usr_id, "integer"));
44 while ($row = $ilDB->fetchAssoc($set)) {
45 $a_res[$row["obj_id"]] = true;
46 }
47
48 return true;
49 }
50}
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 $DIC
Definition: goto.php:24
global $ilDB