|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Base class for course/group mail notifications. More...
Inheritance diagram for ilMailNotification:
Collaboration diagram for ilMailNotification:Public Member Functions | |
| __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_type, $a_parse_recipients=true) | |
| getBlockBorder () | |
| Get (ascii) block border. More... | |
Data Fields | |
| const | SUBJECT_TITLE_LENGTH = 60 |
Protected Member Functions | |
| 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 | |
| $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 | |
Base class for course/group mail notifications.
Definition at line 16 of file class.ilMailNotification.php.
| ilMailNotification::__construct | ( | $a_is_personal_workspace = false | ) |
| bool | false | $a_is_personal_workspace |
Reimplemented in ilDiskQuotaSummaryNotification, ilMailCronOrphanedMailsNotification, and ilMailSummaryNotification.
Definition at line 47 of file class.ilMailNotification.php.
References $ilUser, $lng, ilLanguageFactory\_getLanguage(), and setSender().
Here is the call graph for this function:
|
protected |
Append body text.
| string | $a_body |
Definition at line 131 of file class.ilMailNotification.php.
Referenced by ilCalendarMailNotification\appendAppointmentDetails(), ilForumMailNotification\appendAttachments(), ilTestManScoringParticipantNotification\buildBody(), ilSystemNotification\compose(), ilMailCronOrphanedMailsNotification\getOrphandMailsBody(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilLMMailNotification\send(), ilSessionMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilMailCronOrphanedMailsNotification\send(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
Here is the caller graph for this function:
|
protected |
| array | $a_params | |
| string | $a_append |
Definition at line 409 of file class.ilMailNotification.php.
References ilLink\_getLink(), ilWorkspaceAccessHandler\getGotoLink(), getObjId(), getObjType(), and getRefId().
Referenced by ilSystemNotification\compose(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilLMMailNotification\send(), ilSessionMembershipMailNotification\send(), and ilCalendarMailNotification\send().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMailNotification::getAdditionalInformation | ( | ) |
Definition at line 327 of file class.ilMailNotification.php.
References $additional_info.
Referenced by ilTestManScoringParticipantNotification\buildBody(), ilTestManScoringParticipantNotification\buildSubject(), ilMailCronOrphanedMailsNotification\getOrphandMailsBody(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilSessionMembershipMailNotification\send(), ilRegistrationMailNotification\send(), and ilCronDeleteInactiveUserReminderMailNotification\send().
Here is the caller graph for this function:| ilMailNotification::getAttachments | ( | ) |
Get attachments
Definition at line 174 of file class.ilMailNotification.php.
References $attachments.
Referenced by ilCalendarMailNotification\deleteAttachments(), and sendMail().
Here is the caller graph for this function:| ilMailNotification::getBlockBorder | ( | ) |
Get (ascii) block border.
Definition at line 480 of file class.ilMailNotification.php.
|
protected |
Definition at line 139 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 248 of file class.ilMailNotification.php.
References $language.
Referenced by ilTestManScoringParticipantNotification\__construct(), ilTestManScoringParticipantNotification\buildBody(), ilSystemNotification\compose(), getLanguageText(), ilMailCronOrphanedMailsNotification\getOrphandMailsBody(), ilCourseMembershipMailNotification\initLanguage(), ilExerciseMailNotification\initLanguage(), ilGroupMembershipMailNotification\initLanguage(), ilLMMailNotification\initLanguage(), ilSessionMembershipMailNotification\initLanguage(), ilMimeMailNotification\initLanguage(), ilRegistrationMailNotification\initLanguage(), ilMailCronOrphanedMailsNotification\initLanguageByIso2Code(), ilMimeMailNotification\initLanguageByIso2Code(), ilCronDeleteInactiveUserReminderMailNotification\initLanguageByIso2Code(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilLMMailNotification\send(), ilSessionMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilMailCronOrphanedMailsNotification\send(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
Here is the caller graph for this function:
|
protected |
| string | $a_keyword |
Definition at line 257 of file class.ilMailNotification.php.
References getLanguage().
Referenced by ilForumMailNotification\appendAttachments(), ilTestManScoringParticipantNotification\buildBody(), ilTestManScoringParticipantNotification\buildSubject(), ilSystemNotification\compose(), ilCourseMembershipMailNotification\createCourseStatus(), ilGroupMembershipMailNotification\createGroupStatus(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilLMMailNotification\send(), ilSessionMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilMailSummaryNotification\send(), and ilRegistrationMailNotification\send().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 399 of file class.ilMailNotification.php.
References initMail(), and Monolog\Handler\mail().
Referenced by ilTestManScoringParticipantNotification\buildBody(), ilSystemNotification\compose(), ilWorkflowEngineMailNotification\send(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilLMMailNotification\send(), ilSessionMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilRegistrationMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), sendMail(), and ilTestMailNotification\sendSimpleNotification().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| bool | false | $a_shorten |
Definition at line 336 of file class.ilMailNotification.php.
References $txt, ilObject\_lookupTitle(), getObjId(), and ilUtil\shortenText().
Referenced by ilSystemNotification\compose(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilLMMailNotification\send(), ilSessionMembershipMailNotification\send(), and ilCalendarMailNotification\send().
Here is the call graph for this function:
Here is the caller graph for this function:| ilMailNotification::getObjId | ( | ) |
Definition at line 292 of file class.ilMailNotification.php.
References $obj_id.
Referenced by ilSystemNotification\compose(), ilCourseMembershipMailNotification\createCourseStatus(), ilGroupMembershipMailNotification\createGroupStatus(), createPermanentLink(), getObjectTitle(), and ilSystemNotification\sendMail().
Here is the caller graph for this function:| ilMailNotification::getObjType | ( | ) |
Get object type.
Definition at line 310 of file class.ilMailNotification.php.
References $obj_type.
Referenced by ilSystemNotification\compose(), and createPermanentLink().
Here is the caller graph for this function:| ilMailNotification::getRecipients | ( | ) |
get array of recipients
Definition at line 156 of file class.ilMailNotification.php.
References $recipients.
Referenced by ilTestManScoringParticipantNotification\getRecipient(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilLMMailNotification\send(), ilSessionMembershipMailNotification\send(), ilTestManScoringParticipantNotification\send(), ilCalendarMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilMailCronOrphanedMailsNotification\send(), ilRegistrationMailNotification\send(), and ilCronDeleteInactiveUserReminderMailNotification\send().
Here is the caller graph for this function:| ilMailNotification::getRefId | ( | ) |
Definition at line 284 of file class.ilMailNotification.php.
References $ref_id.
Referenced by ilSystemNotification\compose(), createPermanentLink(), ilCourseMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilSystemNotification\sendMail(), and setRefId().
Here is the caller graph for this function:| ilMailNotification::getSender | ( | ) |
get sender of mail
Definition at line 96 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 113 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 | ( | ) |
Get notification type.
Definition at line 78 of file class.ilMailNotification.php.
References $type.
Referenced by ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilLMMailNotification\send(), ilSessionMembershipMailNotification\send(), ilCalendarMailNotification\send(), and ilRegistrationMailNotification\send().
Here is the caller graph for this function:| ilMailNotification::getUserLanguage | ( | $a_usr_id | ) |
Get user language.
| int | $a_usr_id |
Definition at line 203 of file class.ilMailNotification.php.
References $language, and ilLanguageFactory\_getLanguageOfUser().
Referenced by initLanguage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Init language.
| int | $a_usr_id |
Reimplemented in ilCourseMembershipMailNotification, ilExerciseMailNotification, ilForumMailNotification, ilGroupMembershipMailNotification, ilLMMailNotification, ilSessionMembershipMailNotification, ilMimeMailNotification, and ilRegistrationMailNotification.
Definition at line 192 of file class.ilMailNotification.php.
References getUserLanguage().
Referenced by ilTestManScoringParticipantNotification\__construct(), ilSystemNotification\compose(), ilWorkflowEngineMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilCalendarMailNotification\send(), ilDiskQuotaSummaryNotification\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 |
Init language by ISO2 code.
| string | $a_code |
Reimplemented in ilMailCronOrphanedMailsNotification, ilMimeMailNotification, and ilCronDeleteInactiveUserReminderMailNotification.
Definition at line 223 of file class.ilMailNotification.php.
References ilLanguageFactory\_getLanguage().
Here is the call graph for this function:
|
protected |
Reimplemented in ilForumMailNotification.
Definition at line 391 of file class.ilMailNotification.php.
References getSender(), and Monolog\Handler\mail().
Referenced by ilTestManScoringParticipantNotification\__construct(), ilSystemNotification\compose(), getMail(), ilWorkflowEngineMailNotification\send(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilLMMailNotification\send(), ilSessionMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Check if ref id is accessible for user.
| int | $a_user_id | |
| int | $a_ref_id | |
| string | $a_permission |
Definition at line 451 of file class.ilMailNotification.php.
Referenced by ilSystemNotification\compose().
Here is the caller graph for this function:| ilMailNotification::sendMail | ( | array | $a_rcp, |
| $a_type, | |||
$a_parse_recipients = true |
|||
| ) |
| array | $a_rcp | |
| string | $a_type | ('normal', 'system', 'email') |
| bool | true | $a_parse_recipients |
Reimplemented in ilForumMailNotification, and ilSystemNotification.
Definition at line 355 of file class.ilMailNotification.php.
References $a_type, $error, $recipients, ilObjUser\_lookupLogin(), ilLogLevel\ERROR, getAttachments(), getBody(), ilLoggerFactory\getLogger(), getMail(), and getSubject().
Referenced by ilWorkflowEngineMailNotification\send(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilLMMailNotification\send(), ilSessionMembershipMailNotification\send(), ilTestManScoringParticipantNotification\send(), ilCalendarMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilRegistrationMailNotification\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 | ) |
Additional information for creating notification mails.
| array | $a_info |
Definition at line 319 of file class.ilMailNotification.php.
| ilMailNotification::setAttachments | ( | $a_att | ) |
Set attachments
| array | $a_att |
Definition at line 165 of file class.ilMailNotification.php.
Referenced by ilCalendarMailNotification\addAttachment(), ilForumMailNotification\appendAttachments(), and ilTestMailNotification\sendAdvancedNotification().
Here is the caller graph for this function:
|
protected |
| string | $a_body |
Definition at line 121 of file class.ilMailNotification.php.
Referenced by ilTestManScoringParticipantNotification\buildBody(), ilSystemNotification\compose(), ilWorkflowEngineMailNotification\send(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilLMMailNotification\send(), ilSessionMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
Here is the caller graph for this function:| ilMailNotification::setLangModules | ( | array | $a_modules | ) |
Set lang modules.
| array | $a_modules |
Definition at line 183 of file class.ilMailNotification.php.
Referenced by ilIndividualAssessmentPrimitiveInternalNotificator\__construct().
Here is the caller graph for this function:
|
protected |
| ilLanguage | $a_language |
Definition at line 240 of file class.ilMailNotification.php.
Referenced by ilCalendarMailNotification\send().
Here is the caller graph for this function:| ilMailNotification::setObjId | ( | $a_obj_id | ) |
| int | $a_obj_id |
Definition at line 300 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 | ) |
| array | $a_rcp |
Definition at line 147 of file class.ilMailNotification.php.
Referenced by ilDiskQuotaSummaryNotification\__construct(), ilMailSummaryNotification\send(), and ilTestManScoringParticipantNotification\setRecipient().
Here is the caller graph for this function:| ilMailNotification::setRefId | ( | $a_id | ) |
| int | $a_id |
Definition at line 265 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 | ( | $a_usr_id | ) |
Set sender of mail.
| int | $a_usr_id |
Definition at line 87 of file class.ilMailNotification.php.
Referenced by __construct(), and ilCalendarMailNotification\__construct().
Here is the caller graph for this function:
|
protected |
| string | $a_subject |
Reimplemented in ilForumMailNotification.
Definition at line 105 of file class.ilMailNotification.php.
Referenced by ilTestManScoringParticipantNotification\buildSubject(), ilSystemNotification\compose(), ilWorkflowEngineMailNotification\send(), ilCourseMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilGroupMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilLMMailNotification\send(), ilSessionMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilMailCronOrphanedMailsNotification\send(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
Here is the caller graph for this function:| ilMailNotification::setType | ( | $a_type | ) |
Set notification type.
| int | $a_type |
Definition at line 69 of file class.ilMailNotification.php.
References $a_type.
|
protected |
| int | $a_usr_id |
Definition at line 435 of file class.ilMailNotification.php.
References ilObjUser\_lookupName().
Referenced by ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), and ilSessionMembershipMailNotification\send().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 38 of file class.ilMailNotification.php.
Referenced by getAdditionalInformation().
|
protected |
Definition at line 27 of file class.ilMailNotification.php.
Referenced by getAttachments().
|
protected |
Definition at line 25 of file class.ilMailNotification.php.
Referenced by ilSystemNotification\composeAndGetMessage(), ilCourseMembershipMailNotification\createCourseStatus(), ilGroupMembershipMailNotification\createGroupStatus(), getBody(), ilMailCronOrphanedMailsNotification\send(), and ilCronDeleteInactiveUserReminderMailNotification\send().
|
protected |
Definition at line 40 of file class.ilMailNotification.php.
|
protected |
Definition at line 30 of file class.ilMailNotification.php.
|
protected |
Definition at line 29 of file class.ilMailNotification.php.
Referenced by getLanguage(), and getUserLanguage().
|
protected |
Definition at line 23 of file class.ilMailNotification.php.
Referenced by ilForumMailNotification\initMail(), and ilMailSummaryNotification\send().
|
protected |
Definition at line 35 of file class.ilMailNotification.php.
Referenced by getObjId(), and setRefId().
|
protected |
Definition at line 36 of file class.ilMailNotification.php.
Referenced by getObjType().
|
protected |
Definition at line 32 of file class.ilMailNotification.php.
Referenced by getRecipients(), and sendMail().
|
protected |
Definition at line 34 of file class.ilMailNotification.php.
Referenced by ilSystemNotification\compose(), and getRefId().
|
protected |
Definition at line 21 of file class.ilMailNotification.php.
Referenced by getSender(), and ilMailSummaryNotification\send().
|
protected |
Definition at line 24 of file class.ilMailNotification.php.
Referenced by getSubject(), and ilIndividualAssessmentPrimitiveInternalNotificator\send().
|
protected |
Definition at line 20 of file class.ilMailNotification.php.
Referenced by getType().
|
protected |
Definition at line 42 of file class.ilMailNotification.php.
|
protected |
Definition at line 41 of file class.ilMailNotification.php.
| const ilMailNotification::SUBJECT_TITLE_LENGTH = 60 |
Definition at line 18 of file class.ilMailNotification.php.