ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilCourseReferenceLP.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 
5 
10 {
14  private $logger = null;
15 
16  protected function __construct($a_obj_id)
17  {
18  global $DIC;
19 
20  parent::__construct($a_obj_id);
21 
22  $this->logger = $DIC->logger()->crsr();
23  }
24 
29  public function getMembers(bool $search = true): array
30  {
31  if (!$search) {
32  return [];
33  }
34  $target_ref_id = \ilObjCourseReference::_lookupTargetRefId($this->obj_id);
35  if (!$target_ref_id) {
36  return [];
37  }
38  $participants = \ilParticipants::getInstance($target_ref_id);
39  return $participants->getMembers();
40  }
41 
42 
46  public function getDefaultMode(): int
47  {
48  return \ilLPObjSettings::LP_MODE_DEACTIVATED;
49  }
50 
51  public static function getDefaultModes(bool $lp_active): array
52  {
54  }
55 
59  public function getValidModes(): array
60  {
61  return [
64  ];
65  }
66 }
Class ilCourseReferenceLP.
static getInstance(int $a_ref_id)
static getDefaultModes(bool $lp_active)
global $DIC
Definition: shib_login.php:25
__construct(Container $dic, ilPlugin $plugin)
static _lookupTargetRefId(int $a_obj_id)