|
ILIAS
release_8 Revision v8.24
|
Base class for course/group mail notifications. More...
Inheritance diagram for ilMailNotification:
Collaboration diagram for ilMailNotification:Public Member Functions | |
| __construct (bool $a_is_personal_workspace=false) | |
| setType (int $a_type) | |
| getType () | |
| setSender (int $a_usr_id) | |
| getSender () | |
| setRecipients (array $a_rcp) | |
| getRecipients () | |
| setAttachments (array $a_att) | |
| getAttachments () | |
| setLangModules (array $a_modules) | |
| getUserLanguage (int $a_usr_id) | |
| setRefId (int $a_id) | |
| getRefId () | |
| getObjId () | |
| setObjId (int $a_obj_id) | |
| getObjType () | |
| setAdditionalInformation (array $a_info) | |
| getAdditionalInformation () | |
| sendMail (array $a_rcp, bool $a_parse_recipients=true) | |
| getBlockBorder () | |
Data Fields | |
| const | SUBJECT_TITLE_LENGTH = 60 |
Protected Member Functions | |
| setSubject (string $a_subject) | |
| getSubject () | |
| setBody (string $a_body) | |
| appendBody (string $a_body) | |
| getBody () | |
| initLanguage (int $a_usr_id) | |
| initLanguageByIso2Code (string $a_code='') | |
| setLanguage (ilLanguage $a_language) | |
| getLanguage () | |
| getLanguageText (string $a_keyword) | |
| getObjectTitle (bool $a_shorten=false) | |
| initMail () | |
| getMail () | |
| createPermanentLink (array $a_params=[], string $a_append='') | |
| userToString (int $a_usr_id) | |
| isRefIdAccessible (int $a_user_id, int $a_ref_id, string $a_permission="read") | |
Protected Attributes | |
| int | $type |
| int | $sender |
| ilMail | $mail = null |
| string | $subject = '' |
| string | $body = '' |
| array | $attachments = [] |
| ilLanguage | $language |
| array | $lang_modules = [] |
| array | $recipients = [] |
| int | $ref_id |
| int | $obj_id = 0 |
| string | $obj_type = '' |
| array | $additional_info = [] |
| bool | $is_in_wsp |
| ilWorkspaceTree | $wsp_tree |
| ilWorkspaceAccessHandler | $wsp_access_handler |
Base class for course/group mail notifications.
Definition at line 26 of file class.ilMailNotification.php.
| ilMailNotification::__construct | ( | bool | $a_is_personal_workspace = false | ) |
Reimplemented in ilGroupMembershipMailNotification, ilLMMailNotification, ilCalendarMailNotification, ilMailSummaryNotification, and ilMimeMailNotification.
Definition at line 46 of file class.ilMailNotification.php.
References $DIC, ilLanguageFactory\_getLanguage(), ANONYMOUS_USER_ID, ILIAS\UI\examples\Symbol\Glyph\Language\language(), and setSender().
Here is the call graph for this function:
|
protected |
Definition at line 98 of file class.ilMailNotification.php.
Referenced by ilCalendarMailNotification\appendAppointmentDetails(), ilForumMailNotification\appendAttachments(), ilTestManScoringParticipantNotification\buildBody(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilMailSummaryNotification\send(), ILIAS\Mail\Cron\ExpiredOrOrphanedMails\MailNotification\send(), ilRegistrationMailNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilSessionMembershipMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
Here is the caller graph for this function:
|
protected |
Definition at line 269 of file class.ilMailNotification.php.
References ilLink\_getLink(), ilWorkspaceAccessHandler\getGotoLink(), getObjId(), getObjType(), getRefId(), and ROOT_FOLDER_ID.
Referenced by ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilCalendarMailNotification\send(), and ilSessionMembershipMailNotification\send().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMailNotification::getAdditionalInformation | ( | ) |
Definition at line 218 of file class.ilMailNotification.php.
References $additional_info.
Referenced by ilTestManScoringParticipantNotification\buildBody(), ilTestManScoringParticipantNotification\buildSubject(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilRegistrationMailNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), and ilSessionMembershipMailNotification\send().
Here is the caller graph for this function:| ilMailNotification::getAttachments | ( | ) |
Definition at line 123 of file class.ilMailNotification.php.
References $attachments.
Referenced by ilCalendarMailNotification\deleteAttachments(), and sendMail().
Here is the caller graph for this function:| ilMailNotification::getBlockBorder | ( | ) |
Definition at line 322 of file class.ilMailNotification.php.
|
protected |
Definition at line 103 of file class.ilMailNotification.php.
References $body.
Referenced by ilMailSummaryNotification\send(), sendMail(), and ilMimeMailNotification\sendMimeMail().
Here is the caller graph for this function:
|
protected |
Definition at line 169 of file class.ilMailNotification.php.
References $language.
Referenced by ilTestManScoringParticipantNotification\__construct(), ilTestManScoringParticipantNotification\buildBody(), ILIAS\Mail\Cron\ExpiredOrOrphanedMails\MailNotification\buildFolderTitle(), getLanguageText(), ilCourseMembershipMailNotification\initLanguage(), ilExerciseMailNotification\initLanguage(), ilGroupMembershipMailNotification\initLanguage(), ilLMMailNotification\initLanguage(), ilSessionMembershipMailNotification\initLanguage(), ilMimeMailNotification\initLanguage(), ilRegistrationMailNotification\initLanguage(), ilCronDeleteInactiveUserReminderMailNotification\initLanguage(), ilLearningSequenceMembershipMailNotification\initLanguage(), ilMimeMailNotification\initLanguageByIso2Code(), ILIAS\Mail\Cron\ExpiredOrOrphanedMails\MailNotification\initLanguageByIso2Code(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilMailSummaryNotification\send(), ILIAS\Mail\Cron\ExpiredOrOrphanedMails\MailNotification\send(), ilRegistrationMailNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilSessionMembershipMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
Here is the caller graph for this function:
|
protected |
Definition at line 174 of file class.ilMailNotification.php.
References getLanguage().
Referenced by ilForumMailNotification\appendAttachments(), ilTestManScoringParticipantNotification\buildBody(), ilTestManScoringParticipantNotification\buildSubject(), ilCourseMembershipMailNotification\createCourseStatus(), ilGroupMembershipMailNotification\createGroupStatus(), ilLearningSequenceMembershipMailNotification\createLearningSequenceStatus(), ilForumMailNotification\getPermanentLink(), ilForumMailEventNotificationSender\getPermanentLink(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilForumMailNotification\send(), ilForumMailEventNotificationSender\send(), ilGroupMembershipMailNotification\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), and ilSessionMembershipMailNotification\send().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 264 of file class.ilMailNotification.php.
References initMail().
Referenced by ilTestManScoringParticipantNotification\buildBody(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilRegistrationMailNotification\send(), ilSessionMembershipMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), sendMail(), and ilTestMailNotification\sendSimpleNotification().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 223 of file class.ilMailNotification.php.
References $txt, ilObject\_lookupTitle(), getObjId(), and ilStr\shortenTextExtended().
Referenced by ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilCalendarMailNotification\send(), and ilSessionMembershipMailNotification\send().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMailNotification::getObjId | ( | ) |
Definition at line 197 of file class.ilMailNotification.php.
References $obj_id.
Referenced by ilCourseMembershipMailNotification\createCourseStatus(), ilGroupMembershipMailNotification\createGroupStatus(), ilLearningSequenceMembershipMailNotification\createLearningSequenceStatus(), createPermanentLink(), and getObjectTitle().
Here is the caller graph for this function:| ilMailNotification::getObjType | ( | ) |
Definition at line 208 of file class.ilMailNotification.php.
References $obj_type.
Referenced by createPermanentLink().
Here is the caller graph for this function:| ilMailNotification::getRecipients | ( | ) |
Definition at line 113 of file class.ilMailNotification.php.
References $recipients.
Referenced by ilTestManScoringParticipantNotification\getRecipient(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilForumMailNotification\send(), ilForumMailEventNotificationSender\send(), ilGroupMembershipMailNotification\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilTestManScoringParticipantNotification\send(), ilCalendarMailNotification\send(), ILIAS\Mail\Cron\ExpiredOrOrphanedMails\MailNotification\send(), ilRegistrationMailNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), and ilSessionMembershipMailNotification\send().
Here is the caller graph for this function:| ilMailNotification::getRefId | ( | ) |
Definition at line 192 of file class.ilMailNotification.php.
References $ref_id.
Referenced by createPermanentLink(), ilCourseMembershipMailNotification\initMail(), ilGroupMembershipMailNotification\initMail(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCalendarMailNotification\send(), and setRefId().
Here is the caller graph for this function:| ilMailNotification::getSender | ( | ) |
Definition at line 74 of file class.ilMailNotification.php.
References $sender.
Referenced by ilCalendarMailNotification\addAttachment(), ilCalendarMailNotification\deleteAttachments(), and initMail().
Here is the caller graph for this function:
|
protected |
Definition at line 88 of file class.ilMailNotification.php.
References $subject.
Referenced by ilMailSummaryNotification\send(), sendMail(), and ilMimeMailNotification\sendMimeMail().
Here is the caller graph for this function:| ilMailNotification::getType | ( | ) |
Definition at line 64 of file class.ilMailNotification.php.
References $type.
Referenced by ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilForumMailNotification\send(), ilForumMailEventNotificationSender\send(), ilGroupMembershipMailNotification\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilRegistrationMailNotification\send(), and ilSessionMembershipMailNotification\send().
Here is the caller graph for this function:| ilMailNotification::getUserLanguage | ( | int | $a_usr_id | ) |
Definition at line 138 of file class.ilMailNotification.php.
References $language, ilLanguageFactory\_getLanguageOfUser(), and ilLanguage\loadLanguageModule().
Referenced by initLanguage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Reimplemented in ilCourseMembershipMailNotification, ilExerciseMailNotification, ilForumMailNotification, ilForumMailEventNotificationSender, ilGroupMembershipMailNotification, ilLMMailNotification, ilSessionMembershipMailNotification, ilMimeMailNotification, ilRegistrationMailNotification, ilCronDeleteInactiveUserReminderMailNotification, and ilLearningSequenceMembershipMailNotification.
Definition at line 133 of file class.ilMailNotification.php.
References getUserLanguage(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().
Referenced by ilTestManScoringParticipantNotification\__construct(), ilCalendarMailNotification\send(), ilMailSummaryNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Reimplemented in ilMimeMailNotification, and ILIAS\Mail\Cron\ExpiredOrOrphanedMails\MailNotification.
Definition at line 152 of file class.ilMailNotification.php.
References ilLanguageFactory\_getLanguage(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().
Here is the call graph for this function:
|
protected |
Reimplemented in ilCourseMembershipMailNotification, ilForumMailNotification, ilForumMailEventNotificationSender, and ilGroupMembershipMailNotification.
Definition at line 259 of file class.ilMailNotification.php.
References getSender().
Referenced by ilTestManScoringParticipantNotification\__construct(), getMail(), ilExerciseMailNotification\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilSessionMembershipMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 288 of file class.ilMailNotification.php.
References $DIC.
| ilMailNotification::sendMail | ( | array | $a_rcp, |
| bool | $a_parse_recipients = true |
||
| ) |
Reimplemented in ilForumMailNotification, and ilForumMailEventNotificationSender.
Definition at line 235 of file class.ilMailNotification.php.
References $errors, $recipients, ilObjUser\_lookupLogin(), ilLogLevel\ERROR, getAttachments(), getBody(), ilLoggerFactory\getLogger(), getMail(), and getSubject().
Referenced by ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilTestManScoringParticipantNotification\send(), ilCalendarMailNotification\send(), ilRegistrationMailNotification\send(), ilSessionMembershipMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMailNotification::setAdditionalInformation | ( | array | $a_info | ) |
Definition at line 213 of file class.ilMailNotification.php.
| ilMailNotification::setAttachments | ( | array | $a_att | ) |
Definition at line 118 of file class.ilMailNotification.php.
Referenced by ilCalendarMailNotification\addAttachment(), ilForumMailNotification\appendAttachments(), and ilTestMailNotification\sendAdvancedNotification().
Here is the caller graph for this function:
|
protected |
Definition at line 93 of file class.ilMailNotification.php.
Referenced by ilTestManScoringParticipantNotification\buildBody(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilSessionMembershipMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
Here is the caller graph for this function:| ilMailNotification::setLangModules | ( | array | $a_modules | ) |
Definition at line 128 of file class.ilMailNotification.php.
Referenced by ilIndividualAssessmentPrimitiveInternalNotificator\__construct().
Here is the caller graph for this function:
|
protected |
Definition at line 164 of file class.ilMailNotification.php.
References ILIAS\UI\examples\Symbol\Glyph\Language\language().
Referenced by ilCalendarMailNotification\send().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMailNotification::setObjId | ( | int | $a_obj_id | ) |
Definition at line 202 of file class.ilMailNotification.php.
References ilObject\_lookupType().
Referenced by setRefId().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMailNotification::setRecipients | ( | array | $a_rcp | ) |
Definition at line 108 of file class.ilMailNotification.php.
Referenced by ilMailSummaryNotification\send(), and ilTestManScoringParticipantNotification\setRecipient().
Here is the caller graph for this function:| ilMailNotification::setRefId | ( | int | $a_id | ) |
Definition at line 179 of file class.ilMailNotification.php.
References $obj_id, ilObject\_lookupObjId(), getRefId(), and setObjId().
Referenced by ilTestManScoringParticipantNotification\__construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMailNotification::setSender | ( | int | $a_usr_id | ) |
Definition at line 69 of file class.ilMailNotification.php.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Reimplemented in ilForumMailNotification, ilForumMailEventNotificationSender, and ilMimeMailNotification.
Definition at line 79 of file class.ilMailNotification.php.
References ilStr\strLen(), and ilStr\subStr().
Referenced by ilTestManScoringParticipantNotification\buildSubject(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilSessionMembershipMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMailNotification::setType | ( | int | $a_type | ) |
Definition at line 59 of file class.ilMailNotification.php.
|
protected |
Definition at line 280 of file class.ilMailNotification.php.
References $name, and ilObjUser\_lookupName().
Referenced by ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), and ilSessionMembershipMailNotification\send().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 41 of file class.ilMailNotification.php.
Referenced by getAdditionalInformation().
|
protected |
Definition at line 34 of file class.ilMailNotification.php.
Referenced by getAttachments().
|
protected |
Definition at line 33 of file class.ilMailNotification.php.
Referenced by ilCourseMembershipMailNotification\createCourseStatus(), ilGroupMembershipMailNotification\createGroupStatus(), ilLearningSequenceMembershipMailNotification\createLearningSequenceStatus(), getBody(), and ilCronDeleteInactiveUserReminderMailNotification\send().
|
protected |
Definition at line 42 of file class.ilMailNotification.php.
|
protected |
Definition at line 36 of file class.ilMailNotification.php.
|
protected |
Definition at line 35 of file class.ilMailNotification.php.
Referenced by getLanguage(), and getUserLanguage().
|
protected |
|
protected |
Definition at line 39 of file class.ilMailNotification.php.
Referenced by getObjId(), and setRefId().
|
protected |
Definition at line 40 of file class.ilMailNotification.php.
Referenced by getObjType().
|
protected |
Definition at line 37 of file class.ilMailNotification.php.
Referenced by getRecipients(), and sendMail().
|
protected |
Definition at line 38 of file class.ilMailNotification.php.
Referenced by getRefId().
|
protected |
Definition at line 30 of file class.ilMailNotification.php.
Referenced by getSender(), and ilMailSummaryNotification\send().
|
protected |
Definition at line 32 of file class.ilMailNotification.php.
Referenced by getSubject().
|
protected |
Definition at line 29 of file class.ilMailNotification.php.
Referenced by ilForumMailNotification\getPermanentLink(), ilForumMailEventNotificationSender\getPermanentLink(), getType(), and ilLearningSequenceMembershipMailNotification\isNotificationTypeEnabled().
|
protected |
Definition at line 44 of file class.ilMailNotification.php.
|
protected |
Definition at line 43 of file class.ilMailNotification.php.
| const ilMailNotification::SUBJECT_TITLE_LENGTH = 60 |
Definition at line 28 of file class.ilMailNotification.php.