24 include_once(
'./Services/Membership/classes/class.ilParticipants.php');
65 if(isset(self::$instances[$a_obj_id]) and self::$instances[$a_obj_id])
67 return self::$instances[$a_obj_id];
80 $lrol = $rbacreview->getRolesOfRoleFolder($a_ref_id,
false);
83 foreach($lrol as $role)
86 switch(substr($title,0,8))
101 global $ilAppEventHandler,
$ilLog;
105 $ilLog->write(__METHOD__.
': Raise new event: Modules/Group addSubscriber');
106 $ilAppEventHandler->raise(
111 'usr_id' => $a_usr_id
130 $local_roles = $rbacreview->getRolesOfRoleFolder($a_ref_id,
false);
131 return $rbacreview->isAssignedToAtLeastOneGivenRole($a_usr_id, $local_roles);
142 include_once
'./Modules/Group/classes/class.ilGroupMembershipMailNotification.php';
149 $mail->setRefId($this->ref_id);
150 $mail->setRecipients(array($a_usr_id));
158 $mail->setRefId($this->ref_id);
159 $mail->setRecipients(array($a_usr_id));
167 $mail->setAdditionalInformation(array(
'usr_id' => $a_usr_id));
168 $mail->setRefId($this->ref_id);
177 $mail->setRefId($this->ref_id);
178 $mail->setRecipients(array($a_usr_id));
186 $mail->setAdditionalInformation(array(
'usr_id' => $a_usr_id));
187 $mail->setRefId($this->ref_id);
196 $mail->setRefId($this->ref_id);
197 $mail->setRecipients(array($a_usr_id));
205 $mail->setAdditionalInformation(array(
'usr_id' => $a_usr_id));
206 $mail->setRefId($this->ref_id);
215 $mail->setRefId($this->ref_id);
216 $mail->setRecipients(array($a_usr_id));
224 $mail->setRefId($this->ref_id);
225 $mail->setRecipients(array($a_usr_id));
231 include_once(
'./Modules/Group/classes/class.ilGroupWaitingList.php');
233 $pos = $wl->getPosition($a_usr_id);
237 $mail->setRefId($this->ref_id);
238 $mail->setRecipients(array($a_usr_id));
239 $mail->setAdditionalInformation(array(
'position' => $pos));
247 $mail->setRefId($this->ref_id);
248 $mail->setRecipients(array($a_usr_id));