| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
Base class for course/group mail notifications. More...
 Inheritance diagram for ilMailNotification:
 Inheritance diagram for ilMailNotification: Collaboration diagram for ilMailNotification:
 Collaboration diagram for ilMailNotification:| 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 | |
| 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. | |
| 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. | |
| Private Attributes | |
| $type = null | |
| $sender = null | |
| $mail = null | |
| $subject = '' | |
| $body = '' | |
| $language = null | |
| $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, and ilMailSummaryNotification.
Definition at line 41 of file class.ilMailNotification.php.
References $lng, ilLanguageFactory\_getLanguage(), and setSender().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Append body text.
| string | $a_body | 
Definition at line 121 of file class.ilMailNotification.php.
Referenced by ilCalendarMailNotification\appendAppointmentDetails(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilExerciseMailNotification\send(), and ilCalendarMailNotification\send().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Create a permanent link for an object.
Definition at line 347 of file class.ilMailNotification.php.
References ilLink\_getLink(), getObjType(), and getRefId().
Referenced by ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilExerciseMailNotification\send(), and ilCalendarMailNotification\send().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMailNotification::getAdditionalInformation | ( | ) | 
Get additional information for generating notification mails.
Definition at line 256 of file class.ilMailNotification.php.
References $additional_info.
Referenced by ilRegistrationMailNotification\send(), ilCourseMembershipMailNotification\send(), and ilGroupMembershipMailNotification\send().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Get body.
Definition at line 130 of file class.ilMailNotification.php.
References $body.
Referenced by ilMailSummaryNotification\send(), and sendMail().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
get language object
Definition at line 179 of file class.ilMailNotification.php.
References $language.
Referenced by getLanguageText(), ilRegistrationMailNotification\initLanguage(), ilExerciseMailNotification\initLanguage(), ilGroupMembershipMailNotification\initLanguage(), ilCourseMembershipMailNotification\initLanguage(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilExerciseMailNotification\send(), and ilCalendarMailNotification\send().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Replace new lines.
| object | $a_keyword | 
Definition at line 189 of file class.ilMailNotification.php.
References getLanguage().
Referenced by ilCourseMembershipMailNotification\createCourseStatus(), ilGroupMembershipMailNotification\createGroupStatus(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilExerciseMailNotification\send(), and ilCalendarMailNotification\send().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Get mail object.
Definition at line 338 of file class.ilMailNotification.php.
References initMail().
Referenced by ilRegistrationMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilExerciseMailNotification\send(), ilCalendarMailNotification\send(), and sendMail().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Get object title.
| bool | shorten title | 
Definition at line 266 of file class.ilMailNotification.php.
References ilObject\_lookupTitle(), getObjId(), and ilUtil\shortenText().
Referenced by ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilExerciseMailNotification\send(), and ilCalendarMailNotification\send().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMailNotification::getObjId | ( | ) | 
get object id
Definition at line 219 of file class.ilMailNotification.php.
References $obj_id.
Referenced by ilCourseMembershipMailNotification\createCourseStatus(), ilGroupMembershipMailNotification\createGroupStatus(), and getObjectTitle().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMailNotification::getObjType | ( | ) | 
Get object type.
Definition at line 237 of file class.ilMailNotification.php.
References $obj_type.
Referenced by createPermanentLink().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMailNotification::getRecipients | ( | ) | 
get array of recipients
Definition at line 149 of file class.ilMailNotification.php.
References $recipients.
Referenced by ilRegistrationMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilExerciseMailNotification\send(), and ilCalendarMailNotification\send().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMailNotification::getRefId | ( | ) | 
get reference id
Definition at line 210 of file class.ilMailNotification.php.
References $ref_id.
Referenced by createPermanentLink(), and ilCalendarMailNotification\send().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMailNotification::getSender | ( | ) | 
get sender of mail
Definition at line 82 of file class.ilMailNotification.php.
References $sender.
Referenced by initMail().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Get mail subject.
Definition at line 101 of file class.ilMailNotification.php.
References $subject.
Referenced by ilMailSummaryNotification\send(), and sendMail().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMailNotification::getType | ( | ) | 
Get notification type.
Definition at line 63 of file class.ilMailNotification.php.
References $type.
Referenced by ilRegistrationMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilCalendarMailNotification\send(), and send().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Init language.
| int | $a_usr_id | 
Reimplemented in ilCourseMembershipMailNotification, ilGroupMembershipMailNotification, ilExerciseMailNotification, and ilRegistrationMailNotification.
Definition at line 159 of file class.ilMailNotification.php.
References ilLanguageFactory\_getLanguageOfUser().
Referenced by ilMailSummaryNotification\send(), ilDiskQuotaSummaryNotification\send(), and ilCalendarMailNotification\send().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Init mail.
Definition at line 329 of file class.ilMailNotification.php.
References getSender().
Referenced by getMail(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilExerciseMailNotification\send(), and ilCalendarMailNotification\send().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMailNotification::send | ( | ) | 
Send notifications.
Reimplemented in ilCalendarMailNotification, ilExerciseMailNotification, ilDiskQuotaSummaryNotification, ilCourseMembershipMailNotification, ilGroupMembershipMailNotification, ilRegistrationMailNotification, and ilMailSummaryNotification.
Definition at line 280 of file class.ilMailNotification.php.
References getType().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilMailNotification::sendMail | ( | $a_rcp, | |
| $a_type, | |||
| $a_parse_recipients = true | |||
| ) | 
Send Mail.
| array | recipients | 
| array | mail type (one 'normal', 'system', 'email') | 
Definition at line 294 of file class.ilMailNotification.php.
References $GLOBALS, $recipients, ilObjUser\_lookupLogin(), getBody(), getMail(), and getSubject().
Referenced by ilRegistrationMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilExerciseMailNotification\send(), and ilCalendarMailNotification\send().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMailNotification::setAdditionalInformation | ( | $a_info | ) | 
Additional information for creating notification mails.
| array | $a_info | 
Definition at line 247 of file class.ilMailNotification.php.
| 
 | protected | 
Set mail body.
| string | $a_body | 
Definition at line 111 of file class.ilMailNotification.php.
Referenced by ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilExerciseMailNotification\send(), and ilCalendarMailNotification\send().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
A language.
| object | $a_language | 
Definition at line 170 of file class.ilMailNotification.php.
Referenced by ilCalendarMailNotification\send().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMailNotification::setObjId | ( | $a_obj_id | ) | 
set obj id
Definition at line 228 of file class.ilMailNotification.php.
| ilMailNotification::setRecipients | ( | $a_rcp | ) | 
set mail recipients
| array | $a_rcp | user ids | 
Definition at line 140 of file class.ilMailNotification.php.
Referenced by ilDiskQuotaSummaryNotification\__construct(), and ilMailSummaryNotification\send().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMailNotification::setRefId | ( | $a_id | ) | 
Set ref id.
| int | $a_id | 
Definition at line 199 of file class.ilMailNotification.php.
References ilObject\_lookupObjId(), and ilObject\_lookupType().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilMailNotification::setSender | ( | $a_usr_id | ) | 
Set sender of mail.
| int | $a_usr_id | 
Definition at line 73 of file class.ilMailNotification.php.
Referenced by __construct(), and ilCalendarMailNotification\__construct().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Set mail subject.
| string | $a_subject | 
Definition at line 92 of file class.ilMailNotification.php.
Referenced by ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilExerciseMailNotification\send(), and ilCalendarMailNotification\send().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilMailNotification::setType | ( | $a_type | ) | 
Set notification type.
| int | $a_type | 
Definition at line 54 of file class.ilMailNotification.php.
| 
 | protected | 
Utility function.
| int | $a_usr_id | 
Definition at line 368 of file class.ilMailNotification.php.
References ilObjUser\_lookupName().
Referenced by ilCourseMembershipMailNotification\send(), and ilGroupMembershipMailNotification\send().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 35 of file class.ilMailNotification.php.
Referenced by getAdditionalInformation().
| 
 | private | 
Definition at line 25 of file class.ilMailNotification.php.
Referenced by ilCourseMembershipMailNotification\createCourseStatus(), ilGroupMembershipMailNotification\createGroupStatus(), and getBody().
| 
 | private | 
Definition at line 27 of file class.ilMailNotification.php.
Referenced by getLanguage().
| 
 | private | 
Definition at line 23 of file class.ilMailNotification.php.
Referenced by ilMailSummaryNotification\send().
| 
 | private | 
Definition at line 32 of file class.ilMailNotification.php.
Referenced by getObjId().
| 
 | private | 
Definition at line 33 of file class.ilMailNotification.php.
Referenced by getObjType().
| 
 | private | 
Definition at line 29 of file class.ilMailNotification.php.
Referenced by getRecipients(), and sendMail().
| 
 | private | 
Definition at line 31 of file class.ilMailNotification.php.
Referenced by getRefId().
| 
 | 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().
| const ilMailNotification::SUBJECT_TITLE_LENGTH = 60 | 
Definition at line 18 of file class.ilMailNotification.php.