ILIAS
release_4-3 Revision
|
Base class for course/group mail notifications. More...
Public Member Functions | |
__construct () | |
Constructor. | |
setType ($a_type) | |
Set notification type. | |
getType () | |
Get notification type. | |
setSender ($a_usr_id) | |
Set sender of mail. | |
getSender () | |
get sender of mail | |
setRecipients ($a_rcp) | |
set mail recipients | |
getRecipients () | |
get array of recipients | |
setAttachments ($a_att) | |
getAttachments () | |
setRefId ($a_id) | |
Set ref id. | |
getRefId () | |
get reference id | |
getObjId () | |
get object id | |
setObjId ($a_obj_id) | |
set obj id | |
getObjType () | |
Get object type. | |
setAdditionalInformation ($a_info) | |
Additional information for creating notification mails. | |
getAdditionalInformation () | |
Get additional information for generating notification mails. | |
send () | |
Send notifications. | |
sendMail ($a_rcp, $a_type, $a_parse_recipients=true) | |
Send Mail. |
Data Fields | |
const | SUBJECT_TITLE_LENGTH = 60 |
Protected Member Functions | |
setSubject ($a_subject) | |
Set mail subject. | |
getSubject () | |
Get mail subject. | |
setBody ($a_body) | |
Set mail body. | |
appendBody ($a_body) | |
Append body text. | |
getBody () | |
Get body. | |
initLanguage ($a_usr_id) | |
Init language. | |
initLanguageByIso2Code ($a_code= '') | |
Init language by ISO2 code. | |
setLanguage ($a_language) | |
A language. | |
getLanguage () | |
get language object | |
getLanguageText ($a_keyword) | |
Replace new lines. | |
getObjectTitle ($a_shorten=false) | |
Get object title. | |
initMail () | |
Init mail. | |
getMail () | |
Get mail object. | |
createPermanentLink ($a_params=array(), $a_append= '') | |
Create a permanent link for an object. | |
userToString ($a_usr_id) | |
Utility function. |
Protected Attributes | |
$language = null |
Private Attributes | |
$type = null | |
$sender = null | |
$mail = null | |
$subject = '' | |
$body = '' | |
$attachments = array() | |
$recipients = array() | |
$ref_id = null | |
$obj_id = null | |
$obj_type = null | |
$additional_info = array() |
Base class for course/group mail notifications.
Definition at line 16 of file class.ilMailNotification.php.
ilMailNotification::__construct | ( | ) |
Constructor.
Reimplemented in ilCalendarMailNotification, ilCourseMembershipMailNotification, ilGroupMembershipMailNotification, ilRegistrationMailNotification, ilDiskQuotaSummaryNotification, ilExerciseMailNotification, ilRegistrationMimeMailNotification, ilMailSummaryNotification, ilTestMailNotification, and ilPaymentNotification.
Definition at line 43 of file class.ilMailNotification.php.
References $lng, ilLanguageFactory\_getLanguage(), and setSender().
Referenced by ilTestManScoringParticipantNotification\__construct().
|
protected |
Append body text.
string | $a_body |
Definition at line 123 of file class.ilMailNotification.php.
Referenced by ilCalendarMailNotification\appendAppointmentDetails(), ilTestManScoringParticipantNotification\buildBody(), ilPaymentNotification\send(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilExerciseMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), ilCronCourseGroupNotification\sendMail(), and ilTestMailNotification\sendSimpleNotification().
|
protected |
Create a permanent link for an object.
Definition at line 367 of file class.ilMailNotification.php.
References ilLink\_getLink(), getObjType(), and getRefId().
Referenced by ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilExerciseMailNotification\send(), and ilCalendarMailNotification\send().
ilMailNotification::getAdditionalInformation | ( | ) |
Get additional information for generating notification mails.
Definition at line 276 of file class.ilMailNotification.php.
References $additional_info.
Referenced by ilTestManScoringParticipantNotification\buildBody(), ilTestManScoringParticipantNotification\buildSubject(), ilRegistrationMailNotification\send(), ilCourseMembershipMailNotification\send(), and ilGroupMembershipMailNotification\send().
ilMailNotification::getAttachments | ( | ) |
Definition at line 161 of file class.ilMailNotification.php.
References $attachments.
Referenced by ilCalendarMailNotification\deleteAttachments(), and sendMail().
|
protected |
Get body.
Definition at line 132 of file class.ilMailNotification.php.
References $body.
Referenced by ilPaymentNotification\send(), ilMailSummaryNotification\send(), ilCronCourseGroupNotification\sendMail(), sendMail(), and ilMimeMailNotification\sendMimeMail().
|
protected |
get language object
Definition at line 199 of file class.ilMailNotification.php.
References $language.
Referenced by ilTestManScoringParticipantNotification\__construct(), ilTestManScoringParticipantNotification\buildBody(), getLanguageText(), ilMimeMailNotification\initLanguage(), ilRegistrationMailNotification\initLanguage(), ilExerciseMailNotification\initLanguage(), ilGroupMembershipMailNotification\initLanguage(), ilCourseMembershipMailNotification\initLanguage(), ilMimeMailNotification\initLanguageByIso2Code(), ilPaymentNotification\send(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilExerciseMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), ilCronCourseGroupNotification\sendMail(), and ilTestMailNotification\sendSimpleNotification().
|
protected |
Replace new lines.
string | $a_keyword |
Definition at line 209 of file class.ilMailNotification.php.
References getLanguage().
Referenced by ilTestManScoringParticipantNotification\buildBody(), ilTestManScoringParticipantNotification\buildSubject(), ilCourseMembershipMailNotification\createCourseStatus(), ilGroupMembershipMailNotification\createGroupStatus(), ilPaymentNotification\send(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilCalendarMailNotification\send(), and ilCronCourseGroupNotification\sendMail().
|
protected |
Get mail object.
Definition at line 358 of file class.ilMailNotification.php.
References initMail().
Referenced by ilTestManScoringParticipantNotification\buildBody(), ilRegistrationMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilExerciseMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), sendMail(), and ilTestMailNotification\sendSimpleNotification().
|
protected |
Get object title.
bool | shorten title |
Definition at line 286 of file class.ilMailNotification.php.
References ilObject\_lookupTitle(), getObjId(), and ilUtil\shortenText().
Referenced by ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilExerciseMailNotification\send(), and ilCalendarMailNotification\send().
ilMailNotification::getObjId | ( | ) |
get object id
Definition at line 239 of file class.ilMailNotification.php.
References $obj_id.
Referenced by ilCourseMembershipMailNotification\createCourseStatus(), ilGroupMembershipMailNotification\createGroupStatus(), and getObjectTitle().
ilMailNotification::getObjType | ( | ) |
Get object type.
Definition at line 257 of file class.ilMailNotification.php.
References $obj_type.
Referenced by createPermanentLink().
ilMailNotification::getRecipients | ( | ) |
get array of recipients
Definition at line 151 of file class.ilMailNotification.php.
References $recipients.
Referenced by ilTestManScoringParticipantNotification\getRecipient(), ilTestManScoringParticipantNotification\send(), ilRegistrationMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilExerciseMailNotification\send(), and ilCalendarMailNotification\send().
ilMailNotification::getRefId | ( | ) |
get reference id
Definition at line 230 of file class.ilMailNotification.php.
References $ref_id.
Referenced by createPermanentLink(), ilCourseMembershipMailNotification\send(), and ilCalendarMailNotification\send().
ilMailNotification::getSender | ( | ) |
get sender of mail
Definition at line 84 of file class.ilMailNotification.php.
References $sender.
Referenced by ilCalendarMailNotification\addAttachment(), ilCalendarMailNotification\deleteAttachments(), and initMail().
|
protected |
Get mail subject.
Definition at line 103 of file class.ilMailNotification.php.
References $subject.
Referenced by ilPaymentNotification\send(), ilMailSummaryNotification\send(), ilCronCourseGroupNotification\sendMail(), sendMail(), and ilMimeMailNotification\sendMimeMail().
ilMailNotification::getType | ( | ) |
Get notification type.
Definition at line 65 of file class.ilMailNotification.php.
References $type.
Referenced by ilRegistrationMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilCalendarMailNotification\send(), and send().
|
protected |
Init language.
int | $a_usr_id |
Reimplemented in ilCourseMembershipMailNotification, ilGroupMembershipMailNotification, ilExerciseMailNotification, ilRegistrationMailNotification, and ilMimeMailNotification.
Definition at line 170 of file class.ilMailNotification.php.
References ilLanguageFactory\_getLanguageOfUser().
Referenced by ilTestManScoringParticipantNotification\__construct(), ilPaymentNotification\send(), ilMailSummaryNotification\send(), ilDiskQuotaSummaryNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), ilCronCourseGroupNotification\sendMail(), and ilTestMailNotification\sendSimpleNotification().
|
protected |
Init language by ISO2 code.
string | $a_code |
Reimplemented in ilMimeMailNotification.
Definition at line 180 of file class.ilMailNotification.php.
References ilLanguageFactory\_getLanguage().
|
protected |
Init mail.
Definition at line 349 of file class.ilMailNotification.php.
References getSender().
Referenced by ilTestManScoringParticipantNotification\__construct(), getMail(), ilPaymentNotification\send(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilExerciseMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), ilCronCourseGroupNotification\sendMail(), and ilTestMailNotification\sendSimpleNotification().
ilMailNotification::send | ( | ) |
Send notifications.
Reimplemented in ilCalendarMailNotification, ilExerciseMailNotification, ilDiskQuotaSummaryNotification, ilCourseMembershipMailNotification, ilGroupMembershipMailNotification, ilRegistrationMailNotification, ilTestManScoringParticipantNotification, ilMailSummaryNotification, and ilPaymentNotification.
Definition at line 300 of file class.ilMailNotification.php.
References getType().
ilMailNotification::sendMail | ( | $a_rcp, | |
$a_type, | |||
$a_parse_recipients = true |
|||
) |
Send Mail.
array | recipients |
array | mail type (one 'normal', 'system', 'email') |
Definition at line 314 of file class.ilMailNotification.php.
References $GLOBALS, $recipients, ilObjUser\_lookupLogin(), getAttachments(), getBody(), getMail(), and getSubject().
Referenced by ilTestManScoringParticipantNotification\send(), ilRegistrationMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilExerciseMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
ilMailNotification::setAdditionalInformation | ( | $a_info | ) |
Additional information for creating notification mails.
array | $a_info |
Definition at line 267 of file class.ilMailNotification.php.
Referenced by ilTestScoringGUI\saveManScoringParticipantScreen().
ilMailNotification::setAttachments | ( | $a_att | ) |
Definition at line 156 of file class.ilMailNotification.php.
Referenced by ilCalendarMailNotification\addAttachment(), and ilTestMailNotification\sendAdvancedNotification().
|
protected |
Set mail body.
string | $a_body |
Definition at line 113 of file class.ilMailNotification.php.
Referenced by ilTestManScoringParticipantNotification\buildBody(), ilPaymentNotification\send(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilExerciseMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), ilCronCourseGroupNotification\sendMail(), and ilTestMailNotification\sendSimpleNotification().
|
protected |
A language.
ilLanguage | $a_language |
Definition at line 190 of file class.ilMailNotification.php.
Referenced by ilCalendarMailNotification\send().
ilMailNotification::setObjId | ( | $a_obj_id | ) |
set obj id
Definition at line 248 of file class.ilMailNotification.php.
ilMailNotification::setRecipients | ( | $a_rcp | ) |
set mail recipients
array | $a_rcp | user ids |
Definition at line 142 of file class.ilMailNotification.php.
Referenced by ilDiskQuotaSummaryNotification\__construct(), ilPaymentNotification\send(), ilMailSummaryNotification\send(), ilCronCourseGroupNotification\sendMail(), and ilTestManScoringParticipantNotification\setRecipient().
ilMailNotification::setRefId | ( | $a_id | ) |
Set ref id.
int | $a_id |
Definition at line 219 of file class.ilMailNotification.php.
References ilObject\_lookupObjId(), and ilObject\_lookupType().
Referenced by ilTestManScoringParticipantNotification\__construct().
ilMailNotification::setSender | ( | $a_usr_id | ) |
Set sender of mail.
int | $a_usr_id |
Definition at line 75 of file class.ilMailNotification.php.
Referenced by __construct(), and ilCalendarMailNotification\__construct().
|
protected |
Set mail subject.
string | $a_subject |
Definition at line 94 of file class.ilMailNotification.php.
Referenced by ilTestManScoringParticipantNotification\buildSubject(), ilPaymentNotification\send(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilExerciseMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), ilCronCourseGroupNotification\sendMail(), and ilTestMailNotification\sendSimpleNotification().
ilMailNotification::setType | ( | $a_type | ) |
Set notification type.
int | $a_type |
Definition at line 56 of file class.ilMailNotification.php.
|
protected |
Utility function.
int | $a_usr_id |
Definition at line 388 of file class.ilMailNotification.php.
References ilObjUser\_lookupName().
Referenced by ilCourseMembershipMailNotification\send(), and ilGroupMembershipMailNotification\send().
|
private |
Definition at line 37 of file class.ilMailNotification.php.
Referenced by getAdditionalInformation().
|
private |
Definition at line 27 of file class.ilMailNotification.php.
Referenced by getAttachments().
|
private |
Definition at line 25 of file class.ilMailNotification.php.
Referenced by ilCourseMembershipMailNotification\createCourseStatus(), ilGroupMembershipMailNotification\createGroupStatus(), and getBody().
|
protected |
Definition at line 29 of file class.ilMailNotification.php.
Referenced by getLanguage().
|
private |
Definition at line 23 of file class.ilMailNotification.php.
Referenced by ilMailSummaryNotification\send(), and ilCronCourseGroupNotification\sendMail().
|
private |
Definition at line 34 of file class.ilMailNotification.php.
Referenced by getObjId(), and ilCronCourseGroupNotification\sendMail().
|
private |
Definition at line 35 of file class.ilMailNotification.php.
Referenced by getObjType(), and ilCronCourseGroupNotification\sendMail().
|
private |
Definition at line 31 of file class.ilMailNotification.php.
Referenced by getRecipients(), and sendMail().
|
private |
Definition at line 33 of file class.ilMailNotification.php.
Referenced by getRefId(), and ilCronCourseGroupNotification\sendNotifications().
|
private |
Definition at line 21 of file class.ilMailNotification.php.
Referenced by getSender().
|
private |
Definition at line 24 of file class.ilMailNotification.php.
Referenced by getSubject().
|
private |
Definition at line 20 of file class.ilMailNotification.php.
Referenced by getType(), and ilCronCourseGroupNotification\sendNotifications().
const ilMailNotification::SUBJECT_TITLE_LENGTH = 60 |
Definition at line 18 of file class.ilMailNotification.php.