ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 $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}
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: saml.php:7
global $ilDB