ILIAS
release_8 Revision v8.19
|
Base class for course/group mail notifications. More...
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 | ) |
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().
|
protected |
Definition at line 98 of file class.ilMailNotification.php.
Referenced by ilForumMailNotification\addLinkToMail(), ilCalendarMailNotification\appendAppointmentDetails(), ilForumMailNotification\appendAttachments(), ilTestManScoringParticipantNotification\buildBody(), ilSystemNotification\compose(), ilForumMailNotification\createMail(), ilRegistrationMailNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilMailSummaryNotification\send(), ilLMMailNotification\send(), ilExerciseMailNotification\send(), ILIAS\Mail\Cron\ExpiredOrOrphanedMails\MailNotification\send(), ilSessionMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilCalendarMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), ilAccountRegistrationMail\sendLanguageVariableBasedAccountMail(), and ilTestMailNotification\sendSimpleNotification().
|
protected |
Definition at line 269 of file class.ilMailNotification.php.
References ilLink\_getLink(), ilWorkspaceAccessHandler\getGotoLink(), getObjId(), getObjType(), getRefId(), and ROOT_FOLDER_ID.
Referenced by ilSystemNotification\compose(), ilLMMailNotification\send(), ilExerciseMailNotification\send(), ilSessionMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilCalendarMailNotification\send(), ilGroupMembershipMailNotification\send(), and ilCourseMembershipMailNotification\send().
ilMailNotification::getAdditionalInformation | ( | ) |
Definition at line 218 of file class.ilMailNotification.php.
References $additional_info.
Referenced by ilTestManScoringParticipantNotification\buildBody(), ilTestManScoringParticipantNotification\buildSubject(), ilRegistrationMailNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), ILIAS\Mail\Cron\ExpiredOrOrphanedMails\MailNotification\send(), ilSessionMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), and ilCourseMembershipMailNotification\send().
ilMailNotification::getAttachments | ( | ) |
Definition at line 123 of file class.ilMailNotification.php.
References $attachments.
Referenced by ilCalendarMailNotification\deleteAttachments(), and sendMail().
ilMailNotification::getBlockBorder | ( | ) |
Definition at line 322 of file class.ilMailNotification.php.
Referenced by ilSystemNotification\compose().
|
protected |
Definition at line 103 of file class.ilMailNotification.php.
References $body.
Referenced by ilMailSummaryNotification\send(), sendMail(), and ilMimeMailNotification\sendMimeMail().
|
protected |
Definition at line 169 of file class.ilMailNotification.php.
References $language.
Referenced by ilTestManScoringParticipantNotification\__construct(), ilTestManScoringParticipantNotification\buildBody(), ILIAS\Mail\Cron\ExpiredOrOrphanedMails\MailNotification\buildFolderTitle(), ilSystemNotification\compose(), ilForumMailNotification\createMail(), ilForumMailEventNotificationSender\createMailBodyText(), getLanguageText(), ilCronDeleteInactiveUserReminderMailNotification\initLanguage(), ilMimeMailNotification\initLanguage(), ilLMMailNotification\initLanguage(), ilRegistrationMailNotification\initLanguage(), ilExerciseMailNotification\initLanguage(), ilSessionMembershipMailNotification\initLanguage(), ilLearningSequenceMembershipMailNotification\initLanguage(), ilGroupMembershipMailNotification\initLanguage(), ilCourseMembershipMailNotification\initLanguage(), ILIAS\Mail\Cron\ExpiredOrOrphanedMails\MailNotification\initLanguageByIso2Code(), ilMimeMailNotification\initLanguageByIso2Code(), ilRegistrationMailNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilMailSummaryNotification\send(), ilLMMailNotification\send(), ilExerciseMailNotification\send(), ILIAS\Mail\Cron\ExpiredOrOrphanedMails\MailNotification\send(), ilSessionMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilCalendarMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
|
protected |
Definition at line 174 of file class.ilMailNotification.php.
References getLanguage().
Referenced by ilForumMailNotification\addMailSubject(), ilForumMailNotification\appendAttachments(), ilTestManScoringParticipantNotification\buildBody(), ilTestManScoringParticipantNotification\buildSubject(), ilSystemNotification\compose(), ilForumMailEventNotificationSender\createAttachmentText(), ilCourseMembershipMailNotification\createCourseStatus(), ilGroupMembershipMailNotification\createGroupStatus(), ilLearningSequenceMembershipMailNotification\createLearningSequenceStatus(), ilForumMailNotification\createMail(), ilForumMailEventNotificationSender\createMailBodyText(), ilForumMailEventNotificationSender\createSubjectText(), ilForumMailNotification\getPermanentLink(), ilForumMailEventNotificationSender\getPermanentLink(), ilRegistrationMailNotification\send(), ilMailSummaryNotification\send(), ilLMMailNotification\send(), ilExerciseMailNotification\send(), ilSessionMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilForumMailEventNotificationSender\send(), ilCalendarMailNotification\send(), ilForumMailNotification\send(), ilGroupMembershipMailNotification\send(), and ilCourseMembershipMailNotification\send().
|
protected |
Definition at line 264 of file class.ilMailNotification.php.
References initMail().
Referenced by ilTestManScoringParticipantNotification\buildBody(), ilSystemNotification\compose(), ilRegistrationMailNotification\send(), ilLMMailNotification\send(), ilExerciseMailNotification\send(), ilSessionMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilCalendarMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), sendMail(), and ilTestMailNotification\sendSimpleNotification().
|
protected |
Definition at line 223 of file class.ilMailNotification.php.
References $txt, ilObject\_lookupTitle(), getObjId(), and ilStr\shortenTextExtended().
Referenced by ilSystemNotification\compose(), ilLMMailNotification\send(), ilExerciseMailNotification\send(), ilSessionMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilGroupMembershipMailNotification\send(), and ilCourseMembershipMailNotification\send().
ilMailNotification::getObjId | ( | ) |
Definition at line 197 of file class.ilMailNotification.php.
References $obj_id.
Referenced by ilSystemNotification\compose(), ilCourseMembershipMailNotification\createCourseStatus(), ilGroupMembershipMailNotification\createGroupStatus(), ilLearningSequenceMembershipMailNotification\createLearningSequenceStatus(), createPermanentLink(), getObjectTitle(), and ilSystemNotification\sendMailAndReturnRecipients().
ilMailNotification::getObjType | ( | ) |
Definition at line 208 of file class.ilMailNotification.php.
References $obj_type.
Referenced by ilSystemNotification\compose(), createPermanentLink(), and isRefIdAccessible().
ilMailNotification::getRecipients | ( | ) |
Definition at line 113 of file class.ilMailNotification.php.
References $recipients.
Referenced by ilTestManScoringParticipantNotification\getRecipient(), ilTestManScoringParticipantNotification\send(), ilRegistrationMailNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilLMMailNotification\send(), ilExerciseMailNotification\send(), ILIAS\Mail\Cron\ExpiredOrOrphanedMails\MailNotification\send(), ilSessionMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilForumMailEventNotificationSender\send(), ilCalendarMailNotification\send(), ilForumMailNotification\send(), ilGroupMembershipMailNotification\send(), and ilCourseMembershipMailNotification\send().
ilMailNotification::getRefId | ( | ) |
Definition at line 192 of file class.ilMailNotification.php.
References $ref_id.
Referenced by ilSystemNotification\compose(), createPermanentLink(), ilGroupMembershipMailNotification\initMail(), ilCourseMembershipMailNotification\initMail(), ilCalendarMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilSystemNotification\sendMailAndReturnRecipients(), and setRefId().
ilMailNotification::getSender | ( | ) |
Definition at line 74 of file class.ilMailNotification.php.
References $sender.
Referenced by ilCalendarMailNotification\addAttachment(), ilCalendarMailNotification\deleteAttachments(), and initMail().
|
protected |
Definition at line 88 of file class.ilMailNotification.php.
References $subject.
Referenced by ilMailSummaryNotification\send(), sendMail(), and ilMimeMailNotification\sendMimeMail().
ilMailNotification::getType | ( | ) |
Definition at line 64 of file class.ilMailNotification.php.
References $type.
Referenced by ilRegistrationMailNotification\send(), ilLMMailNotification\send(), ilExerciseMailNotification\send(), ilSessionMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilForumMailEventNotificationSender\send(), ilCalendarMailNotification\send(), ilForumMailNotification\send(), ilGroupMembershipMailNotification\send(), and ilCourseMembershipMailNotification\send().
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().
|
protected |
Definition at line 133 of file class.ilMailNotification.php.
References getUserLanguage(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().
Referenced by ilTestManScoringParticipantNotification\__construct(), ilSystemNotification\compose(), ilMailSummaryNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
|
protected |
Definition at line 152 of file class.ilMailNotification.php.
References ilLanguageFactory\_getLanguage(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().
|
protected |
Definition at line 259 of file class.ilMailNotification.php.
References getSender().
Referenced by ilTestManScoringParticipantNotification\__construct(), ilSystemNotification\compose(), getMail(), ilRegistrationMailNotification\send(), ilMailSummaryNotification\send(), ilLMMailNotification\send(), ilExerciseMailNotification\send(), ilSessionMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
|
protected |
Definition at line 288 of file class.ilMailNotification.php.
References $DIC, and getObjType().
Referenced by ilSystemNotification\compose().
ilMailNotification::sendMail | ( | array | $a_rcp, |
bool | $a_parse_recipients = true |
||
) |
Definition at line 235 of file class.ilMailNotification.php.
References $errors, ilObjUser\_lookupLogin(), ilLogLevel\ERROR, getAttachments(), getBody(), ilLoggerFactory\getLogger(), getMail(), and getSubject().
Referenced by ilSystemNotification\composeAndSendMail(), ilTestManScoringParticipantNotification\send(), ilRegistrationMailNotification\send(), ilLMMailNotification\send(), ilExerciseMailNotification\send(), ilSessionMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilCalendarMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
ilMailNotification::setAdditionalInformation | ( | array | $a_info | ) |
Definition at line 213 of file class.ilMailNotification.php.
Referenced by ilTestScoringGUI\saveManScoringParticipantScreen().
ilMailNotification::setAttachments | ( | array | $a_att | ) |
Definition at line 118 of file class.ilMailNotification.php.
Referenced by ilCalendarMailNotification\addAttachment(), ilForumMailNotification\appendAttachments(), and ilTestMailNotification\sendAdvancedNotification().
|
protected |
Definition at line 93 of file class.ilMailNotification.php.
Referenced by ilTestManScoringParticipantNotification\buildBody(), ilSystemNotification\compose(), ilForumMailNotification\createMail(), ilRegistrationMailNotification\send(), ilMailSummaryNotification\send(), ilLMMailNotification\send(), ilExerciseMailNotification\send(), ilSessionMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilCalendarMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), ilAccountRegistrationMail\sendLanguageVariableBasedAccountMail(), and ilTestMailNotification\sendSimpleNotification().
ilMailNotification::setLangModules | ( | array | $a_modules | ) |
Definition at line 128 of file class.ilMailNotification.php.
Referenced by ilIndividualAssessmentPrimitiveInternalNotificator\__construct().
|
protected |
Definition at line 164 of file class.ilMailNotification.php.
References ILIAS\UI\examples\Symbol\Glyph\Language\language().
Referenced by ilCalendarMailNotification\send().
ilMailNotification::setObjId | ( | int | $a_obj_id | ) |
Definition at line 202 of file class.ilMailNotification.php.
References ilObject\_lookupType().
Referenced by setRefId().
ilMailNotification::setRecipients | ( | array | $a_rcp | ) |
Definition at line 108 of file class.ilMailNotification.php.
Referenced by ilMailSummaryNotification\send(), and ilTestManScoringParticipantNotification\setRecipient().
ilMailNotification::setRefId | ( | int | $a_id | ) |
Definition at line 179 of file class.ilMailNotification.php.
References ilObject\_lookupObjId(), getRefId(), and setObjId().
Referenced by ilTestManScoringParticipantNotification\__construct().
ilMailNotification::setSender | ( | int | $a_usr_id | ) |
Definition at line 69 of file class.ilMailNotification.php.
Referenced by __construct().
|
protected |
Definition at line 79 of file class.ilMailNotification.php.
References ilStr\strLen(), and ilStr\subStr().
Referenced by ilTestManScoringParticipantNotification\buildSubject(), ilSystemNotification\compose(), ilRegistrationMailNotification\send(), ilMailSummaryNotification\send(), ilLMMailNotification\send(), ilExerciseMailNotification\send(), ilSessionMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilCalendarMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
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 ilSessionMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), and ilCourseMembershipMailNotification\send().
|
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 ilSystemNotification\composeAndGetMessage(), ilForumMailEventNotificationSender\createAttachmentLinkText(), ilCourseMembershipMailNotification\createCourseStatus(), ilGroupMembershipMailNotification\createGroupStatus(), ilLearningSequenceMembershipMailNotification\createLearningSequenceStatus(), ilForumMailEventNotificationSender\createMailBodyText(), 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().
|
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().
|
protected |
Definition at line 38 of file class.ilMailNotification.php.
Referenced by ilSystemNotification\compose(), and 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(), and ilIndividualAssessmentPrimitiveInternalNotificator\send().
|
protected |
Definition at line 29 of file class.ilMailNotification.php.
Referenced by ilForumMailNotification\getPermanentLink(), ilForumMailEventNotificationSender\getPermanentLink(), and getType().
|
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.