24 include_once(
'./Services/Membership/classes/class.ilParticipants.php');
51 parent::__construct(self::COMPONENT_NAME,$a_obj_id);
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)
101 global $ilAppEventHandler,
$ilLog;
103 parent::addSubscriber($a_usr_id);
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';
144 $mail->forceSendingMail($a_force_sending_mail);
151 $mail->setRefId($this->ref_id);
152 $mail->setRecipients(
array($a_usr_id));
159 $mail->setRefId($this->ref_id);
160 $mail->setRecipients(
array($a_usr_id));
167 $mail->setAdditionalInformation(
array(
'usr_id' => $a_usr_id));
168 $mail->setRefId($this->ref_id);
176 $mail->setRefId($this->ref_id);
177 $mail->setRecipients(
array($a_usr_id));
184 $mail->setAdditionalInformation(
array(
'usr_id' => $a_usr_id));
185 $mail->setRefId($this->ref_id);
193 $mail->setRefId($this->ref_id);
194 $mail->setRecipients(
array($a_usr_id));
201 $mail->setAdditionalInformation(
array(
'usr_id' => $a_usr_id));
202 $mail->setRefId($this->ref_id);
210 $mail->setRefId($this->ref_id);
211 $mail->setRecipients(
array($a_usr_id));
218 $mail->setRefId($this->ref_id);
219 $mail->setRecipients(
array($a_usr_id));
225 include_once(
'./Modules/Group/classes/class.ilGroupWaitingList.php');
227 $pos = $wl->getPosition($a_usr_id);
230 $mail->setRefId($this->ref_id);
231 $mail->setRecipients(
array($a_usr_id));
232 $mail->setAdditionalInformation(
array(
'position' => $pos));
239 $mail->setRefId($this->ref_id);
240 $mail->setRecipients(
array($a_usr_id));
getObjId()
get current obj_id
const TYPE_NOTIFICATION_REGISTRATION_REQUEST
const TYPE_NOTIFICATION_UNSUBSCRIBE
static _isParticipant($a_ref_id, $a_usr_id)
Static function to check if a user is a participant of the container object.
const TYPE_ACCEPTED_SUBSCRIPTION_MEMBER
const TYPE_STATUS_CHANGED
const TYPE_SUBSCRIBE_MEMBER
const TYPE_DISMISS_MEMBER
static _lookupTitle($a_id)
lookup object title
static getMemberRoles($a_ref_id)
Get member roles (not auto generated)
__construct($a_obj_id)
Constructor.
const TYPE_NOTIFICATION_REGISTRATION
sendNotification($a_type, $a_usr_id, $a_force_sending_mail=false)
Send notification mail.
const TYPE_WAITING_LIST_MEMBER
const TYPE_UNSUBSCRIBE_MEMBER
static _getInstanceByObjId($a_obj_id)
Get singleton instance.
Create styles array
The data for the language used.
const TYPE_REFUSED_SUBSCRIPTION_MEMBER
getNotificationRecipients()
Get admin, tutor which have notification enabled.
const TYPE_ADMISSION_MEMBER