3 declare(strict_types=1);
    47         return self::getInstance(array_pop($refs));
    52         if (isset(self::$instances[$a_ref_id]) && self::$instances[$a_ref_id] instanceof 
self) {
    53             return self::$instances[$a_ref_id];
    55         return self::$instances[$a_ref_id] = 
new self($a_ref_id);
    80         $this->participants_status = [];
    82             $this->participants_status[$mem_uid][
'blocked'] = 
false;
    83             $this->participants_status[$mem_uid][
'notification_enabled'] = (bool) $info[
'notification_enabled'];
    84             $this->participants_status[$mem_uid][
'passed'] = 
false;
    85             $this->participants_status[$mem_uid][
'contact'] = (bool) $info[
'contact'];
    92     public function add(
int $a_usr_id, 
int $a_role = 0): bool
   100     public function register(
int $a_usr_id): 
bool   102         $this->
logger->debug(
'Registering user: ' . $a_usr_id . 
' for session: ' . $this->
getObjId());
   113             $this->
delete($a_usr_id);
   119     public function sendNotification(
int $a_type, 
int $a_usr_id, 
bool $a_force_email = 
false): void
   126                 $mail->setRefId($this->ref_id);
   127                 $mail->setRecipients([$a_usr_id]);
   132                 $this->
logger->warning(
'Invalid notfication type given: ' . $a_type);
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _getAllReferences(int $id)
get all reference ids for object ID 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
__construct(int $a_ref_id)
 
static _isParticipant(int $a_ref_id, int $a_usr_id)
 
sendNotification(int $a_type, int $a_usr_id, bool $a_force_email=false)
 
static _lookupObjId(int $ref_id)
 
checkLastAdmin(array $a_usr_ids)
no last admin restrictions for sessions 
 
ilEventParticipants $event_part
 
unregister(int $a_usr_id)
 
static _isRegistered(int $a_usr_id, int $a_event_id)
 
static getInstance(int $a_ref_id)
 
getParticipants()
Get all participants ids. 
 
add(int $a_usr_id, int $a_role=0)
Add user to session member role. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Base class for course and group participants. 
 
const TYPE_ACCEPTED_SUBSCRIPTION_MEMBER
 
static _getInstanceByObjId(int $a_obj_id)