ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Public Member Functions | |
__construct () | |
forceSendingMail ($a_status) | |
Force sending mail independent from global setting. More... | |
send () | |
Send notifications. More... | |
![]() | |
__construct ($a_is_personal_workspace=false) | |
setType ($a_type) | |
Set notification type. More... | |
getType () | |
Get notification type. More... | |
setSender ($a_usr_id) | |
Set sender of mail. More... | |
getSender () | |
get sender of mail More... | |
setRecipients (array $a_rcp) | |
getRecipients () | |
get array of recipients More... | |
setAttachments ($a_att) | |
Set attachments. More... | |
getAttachments () | |
Get attachments. More... | |
setLangModules (array $a_modules) | |
Set lang modules. More... | |
getUserLanguage ($a_usr_id) | |
Get user language. More... | |
setRefId ($a_id) | |
getRefId () | |
getObjId () | |
setObjId ($a_obj_id) | |
getObjType () | |
Get object type. More... | |
setAdditionalInformation (array $a_info) | |
Additional information for creating notification mails. More... | |
getAdditionalInformation () | |
sendMail (array $a_rcp, $a_parse_recipients=true) | |
getBlockBorder () | |
Get (ascii) block border. More... | |
Data Fields | |
const | TYPE_ADMISSION_MEMBER = 20 |
const | TYPE_DISMISS_MEMBER = 21 |
const | TYPE_ACCEPTED_SUBSCRIPTION_MEMBER = 22 |
const | TYPE_REFUSED_SUBSCRIPTION_MEMBER = 23 |
const | TYPE_STATUS_CHANGED = 24 |
const | TYPE_BLOCKED_MEMBER = 25 |
const | TYPE_UNBLOCKED_MEMBER = 26 |
const | TYPE_UNSUBSCRIBE_MEMBER = 27 |
const | TYPE_SUBSCRIBE_MEMBER = 28 |
const | TYPE_WAITING_LIST_MEMBER = 29 |
const | TYPE_NOTIFICATION_REGISTRATION = 30 |
const | TYPE_NOTIFICATION_REGISTRATION_REQUEST = 31 |
const | TYPE_NOTIFICATION_UNSUBSCRIBE = 32 |
![]() | |
const | SUBJECT_TITLE_LENGTH = 60 |
Protected Member Functions | |
initLanguage ($a_usr_id) | |
Add language module crs. More... | |
createCourseStatus ($a_usr_id) | |
Get course status body. More... | |
isNotificationTypeEnabled ($a_type) | |
get setting "mail_crs_member_notification" and excludes types which are not affected by this setting See description of $this->permanent_enabled_notifications More... | |
![]() | |
setSubject ($a_subject) | |
getSubject () | |
setBody ($a_body) | |
appendBody ($a_body) | |
Append body text. More... | |
getBody () | |
initLanguage ($a_usr_id) | |
Init language. More... | |
initLanguageByIso2Code ($a_code='') | |
Init language by ISO2 code. More... | |
setLanguage ($a_language) | |
getLanguage () | |
getLanguageText ($a_keyword) | |
getObjectTitle ($a_shorten=false) | |
initMail () | |
getMail () | |
createPermanentLink ($a_params=array(), $a_append='') | |
userToString ($a_usr_id) | |
isRefIdAccessible ($a_user_id, $a_ref_id, $a_permission="read") | |
Check if ref id is accessible for user. More... | |
Protected Attributes | |
$permanent_enabled_notifications | |
Notifications which are not affected by "mail_crs_member_notification" setting because they addresses admins. More... | |
![]() | |
$type = null | |
$sender = null | |
$mail = null | |
$subject = '' | |
$body = '' | |
$attachments = array() | |
$language = null | |
$lang_modules = array() | |
$recipients = array() | |
$ref_id = null | |
$obj_id = null | |
$obj_type = null | |
$additional_info = array() | |
$is_in_wsp | |
$wsp_tree | |
$wsp_access_handler | |
Private Attributes | |
$force_sending_mail = false | |
Definition at line 12 of file class.ilCourseMembershipMailNotification.php.
ilCourseMembershipMailNotification::__construct | ( | ) |
Definition at line 52 of file class.ilCourseMembershipMailNotification.php.
References ILIAS\GlobalScreen\Provider\__construct().
|
protected |
Get course status body.
int | $a_usr_id |
Definition at line 430 of file class.ilCourseMembershipMailNotification.php.
References ilMailNotification\$body, ilCourseParticipants\_getInstanceByObjId(), ilMailNotification\getLanguageText(), and ilMailNotification\getObjId().
Referenced by send().
ilCourseMembershipMailNotification::forceSendingMail | ( | $a_status | ) |
Force sending mail independent from global setting.
type | $a_status |
Definition at line 61 of file class.ilCourseMembershipMailNotification.php.
|
protected |
Add language module crs.
object | $a_usr_id |
Definition at line 419 of file class.ilCourseMembershipMailNotification.php.
References ilMailNotification\getLanguage().
Referenced by send().
|
protected |
get setting "mail_crs_member_notification" and excludes types which are not affected by this setting See description of $this->permanent_enabled_notifications
int | $a_type |
Definition at line 481 of file class.ilCourseMembershipMailNotification.php.
References $a_type, $DIC, and $ilSetting.
Referenced by send().
ilCourseMembershipMailNotification::send | ( | ) |
Send notifications.
Definition at line 70 of file class.ilCourseMembershipMailNotification.php.
References ilMailNotification\appendBody(), createCourseStatus(), ilMailNotification\createPermanentLink(), ilMailNotification\getAdditionalInformation(), ilObjectFactory\getInstanceByRefId(), ilMailNotification\getLanguage(), ilMailNotification\getLanguageText(), ilMailNotification\getMail(), ilMailNotification\getObjectTitle(), ilMailNotification\getRecipients(), ilMailNotification\getRefId(), ilMail\getSalutation(), ilMailNotification\getType(), initLanguage(), ilMailNotification\initMail(), isNotificationTypeEnabled(), ilMailNotification\sendMail(), ilMailNotification\setBody(), ilMailNotification\setSubject(), and ilMailNotification\userToString().
|
private |
Definition at line 46 of file class.ilCourseMembershipMailNotification.php.
|
protected |
Notifications which are not affected by "mail_crs_member_notification" setting because they addresses admins.
Definition at line 40 of file class.ilCourseMembershipMailNotification.php.
const ilCourseMembershipMailNotification::TYPE_ACCEPTED_SUBSCRIPTION_MEMBER = 22 |
Definition at line 18 of file class.ilCourseMembershipMailNotification.php.
Referenced by ilCourseParticipants\sendNotification().
const ilCourseMembershipMailNotification::TYPE_ADMISSION_MEMBER = 20 |
Definition at line 15 of file class.ilCourseMembershipMailNotification.php.
Referenced by ilCourseParticipants\sendNotification().
const ilCourseMembershipMailNotification::TYPE_BLOCKED_MEMBER = 25 |
Definition at line 23 of file class.ilCourseMembershipMailNotification.php.
Referenced by ilCourseParticipants\sendNotification().
const ilCourseMembershipMailNotification::TYPE_DISMISS_MEMBER = 21 |
Definition at line 16 of file class.ilCourseMembershipMailNotification.php.
Referenced by ilCourseParticipants\sendNotification().
const ilCourseMembershipMailNotification::TYPE_NOTIFICATION_REGISTRATION = 30 |
Definition at line 31 of file class.ilCourseMembershipMailNotification.php.
Referenced by ilCourseParticipants\sendNotificationToAdmins().
const ilCourseMembershipMailNotification::TYPE_NOTIFICATION_REGISTRATION_REQUEST = 31 |
Definition at line 32 of file class.ilCourseMembershipMailNotification.php.
Referenced by ilCourseParticipants\sendSubscriptionRequestToAdmins().
const ilCourseMembershipMailNotification::TYPE_NOTIFICATION_UNSUBSCRIBE = 32 |
Definition at line 33 of file class.ilCourseMembershipMailNotification.php.
Referenced by ilCourseParticipants\sendUnsubscribeNotificationToAdmins().
const ilCourseMembershipMailNotification::TYPE_REFUSED_SUBSCRIPTION_MEMBER = 23 |
Definition at line 19 of file class.ilCourseMembershipMailNotification.php.
Referenced by ilCourseParticipants\sendNotification().
const ilCourseMembershipMailNotification::TYPE_STATUS_CHANGED = 24 |
Definition at line 21 of file class.ilCourseMembershipMailNotification.php.
Referenced by ilCourseParticipants\sendNotification().
const ilCourseMembershipMailNotification::TYPE_SUBSCRIBE_MEMBER = 28 |
Definition at line 27 of file class.ilCourseMembershipMailNotification.php.
Referenced by ilCourseParticipants\sendNotification().
const ilCourseMembershipMailNotification::TYPE_UNBLOCKED_MEMBER = 26 |
Definition at line 24 of file class.ilCourseMembershipMailNotification.php.
Referenced by ilCourseParticipants\sendNotification().
const ilCourseMembershipMailNotification::TYPE_UNSUBSCRIBE_MEMBER = 27 |
Definition at line 26 of file class.ilCourseMembershipMailNotification.php.
Referenced by ilCourseParticipants\sendNotification().
const ilCourseMembershipMailNotification::TYPE_WAITING_LIST_MEMBER = 29 |
Definition at line 28 of file class.ilCourseMembershipMailNotification.php.
Referenced by ilCourseParticipants\sendNotification().