ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilExerciseLP.php
Go to the documentation of this file.
1<?php
2
26{
30 public static function getDefaultModes(bool $a_lp_active): array
31 {
32 return array(
35 );
36 }
37
38 public function getDefaultMode(): int
39 {
41 }
42
46 public function getValidModes(): array
47 {
48 return array(
51 );
52 }
53
54 protected static function isLPMember(array &$a_res, int $a_usr_id, array $a_obj_ids): bool
55 {
56 global $DIC;
57
58 $ilDB = $DIC->database();
59
60 $set = $ilDB->query("SELECT obj_id" .
61 " FROM exc_members" .
62 " WHERE " . $ilDB->in("obj_id", $a_obj_ids, "", "integer") .
63 " AND usr_id = " . $ilDB->quote($a_usr_id, "integer"));
64 while ($row = $ilDB->fetchAssoc($set)) {
65 $a_res[$row["obj_id"]] = true;
66 }
67
68 return true;
69 }
70}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getDefaultModes(bool $a_lp_active)
static isLPMember(array &$a_res, int $a_usr_id, array $a_obj_ids)
Find (lp-relevant) members for given object ids.
Base class for object lp connectors.
global $DIC
Definition: shib_login.php:26