4 include_once(
'./Services/Membership/classes/class.ilParticipants.php');
5 include_once
'./Modules/Session/classes/class.ilEventParticipants.php';
32 parent::__construct(self::COMPONENT_NAME, $a_ref_id);
44 return self::getInstance(array_pop($refs));
56 if (self::$instances[$a_ref_id] instanceof
self) {
57 return self::$instances[$a_ref_id];
59 return self::$instances[$a_ref_id] =
new self($a_ref_id);
100 $this->participants_status = array();
102 $this->participants_status[$mem_uid][
'blocked'] =
false;
103 $this->participants_status[$mem_uid][
'notification'] =
false;
104 $this->participants_status[$mem_uid][
'passed'] =
false;
105 $this->participants_status[$mem_uid][
'contact'] = $this->
getEventParticipants()->isContact($mem_uid);
114 public function add($a_usr_id, $a_role =
"")
127 public function register($a_usr_id)
129 $this->logger->debug(
'Registering user: ' . $a_usr_id .
' for session: ' . $this->
getObjId());
148 $this->
delete($a_usr_id);
168 $mail->setRefId($this->ref_id);
169 $mail->setRecipients([$a_usr_id]);
174 $this->logger->warning(
'Invalid notfication type given: ' .
$a_type);
getObjId()
get current obj_id
getEventParticipants()
Get event particpants object.
Session participation handling.
static _isParticipant($a_ref_id, $a_usr_id)
Static function to check if a user is a participant of the container object.
static _getInstanceByObjId($a_obj_id)
Get instance.
static _isRegistered($a_usr_id, $a_event_id)
static _getAllReferences($a_id)
get all reference ids of object
__construct($a_ref_id)
Constructor.
checkLastAdmin($a_usr_ids)
no last admin restrictions for sessions
sendNotification($a_type, $a_usr_id, $a_force_email=false)
getMembers()
Get all members ids (admins and tutors are not members) Use get participants to fetch all...
add($a_usr_id, $a_role="")
Add user to session member role.
static _lookupObjId($a_id)
readParticipantsStatus()
read participant status
static getInstance($a_ref_id)
Get instance.
const TYPE_ACCEPTED_SUBSCRIPTION_MEMBER
unregister($a_usr_id)
Unregister user.