ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilExerciseLP.php
Go to the documentation of this file.
1 <?php
2 
25 class ilExerciseLP extends ilObjectLP
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 isLPMember(array &$a_res, int $a_usr_id, array $a_obj_ids)
global $DIC
Definition: feed.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getDefaultModes(bool $a_lp_active)