ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilCourseReferenceLP.php
Go to the documentation of this file.
1<?php
2
23{
27 private $logger = null;
28
29 protected function __construct($a_obj_id)
30 {
31 global $DIC;
32
33 parent::__construct($a_obj_id);
34
35 $this->logger = $DIC->logger()->crsr();
36 }
37
42 public function getMembers(bool $search = true): array
43 {
44 if (!$search) {
45 return [];
46 }
47 $target_ref_id = \ilObjCourseReference::_lookupTargetRefId($this->obj_id);
48 if (!$target_ref_id) {
49 return [];
50 }
51 $participants = \ilParticipants::getInstance($target_ref_id);
52 return $participants->getMembers();
53 }
54
55
59 public function getDefaultMode(): int
60 {
61 return \ilLPObjSettings::LP_MODE_DEACTIVATED;
62 }
63
64 public static function getDefaultModes(bool $lp_active): array
65 {
67 }
68
72 public function getValidModes(): array
73 {
74 return [
77 ];
78 }
79}
static _lookupTargetRefId(int $a_obj_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getDefaultModes(bool $lp_active)
Get available type-specific default modes (no administration needed)
Base class for object lp connectors.
static getInstance(int $a_ref_id)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26