ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Base class for course/group mail notifications. More...
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 |
Definition at line 47 of file class.ilMailNotification.php.
References $ilUser, $lng, ilLanguageFactory\_getLanguage(), and setSender().
|
protected |
Append body text.
string | $a_body |
Definition at line 131 of file class.ilMailNotification.php.
Referenced by ilRegistrationMimeMailNotification\__construct(), ilCalendarMailNotification\appendAppointmentDetails(), ilForumMailNotification\appendAttachments(), ilTestManScoringParticipantNotification\buildBody(), ilSystemNotification\compose(), ilMailCronOrphanedMailsNotification\getOrphandMailsBody(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilMailCronOrphanedMailsNotification\send(), ilLMMailNotification\send(), ilSessionMembershipMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilExerciseMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
|
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(), ilLMMailNotification\send(), ilSessionMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), and ilCalendarMailNotification\send().
ilMailNotification::getAdditionalInformation | ( | ) |
Definition at line 327 of file class.ilMailNotification.php.
References $additional_info, and array.
Referenced by ilRegistrationMimeMailNotification\__construct(), ilTestManScoringParticipantNotification\buildBody(), ilTestManScoringParticipantNotification\buildSubject(), ilMailCronOrphanedMailsNotification\getOrphandMailsBody(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilRegistrationMailNotification\send(), ilSessionMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), and ilGroupMembershipMailNotification\send().
ilMailNotification::getAttachments | ( | ) |
Get attachments.
Definition at line 174 of file class.ilMailNotification.php.
References $attachments, and array.
Referenced by ilCalendarMailNotification\deleteAttachments(), and sendMail().
ilMailNotification::getBlockBorder | ( | ) |
Get (ascii) block border.
Definition at line 480 of file class.ilMailNotification.php.
Referenced by ilSystemNotification\compose().
|
protected |
Definition at line 139 of file class.ilMailNotification.php.
References $body.
Referenced by ilMailSummaryNotification\send(), sendMail(), and ilMimeMailNotification\sendMimeMail().
|
protected |
Definition at line 248 of file class.ilMailNotification.php.
References $language.
Referenced by ilTestManScoringParticipantNotification\__construct(), ilRegistrationMimeMailNotification\__construct(), ilForumMailNotification\appendAttachments(), ilTestManScoringParticipantNotification\buildBody(), ilSystemNotification\compose(), getLanguageText(), ilMailCronOrphanedMailsNotification\getOrphandMailsBody(), ilMimeMailNotification\initLanguage(), ilLMMailNotification\initLanguage(), ilRegistrationMailNotification\initLanguage(), ilExerciseMailNotification\initLanguage(), ilSessionMembershipMailNotification\initLanguage(), ilGroupMembershipMailNotification\initLanguage(), ilCourseMembershipMailNotification\initLanguage(), ilMailCronOrphanedMailsNotification\initLanguageByIso2Code(), ilCronDeleteInactiveUserReminderMailNotification\initLanguageByIso2Code(), ilMimeMailNotification\initLanguageByIso2Code(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilMailCronOrphanedMailsNotification\send(), ilLMMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilSessionMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
|
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(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilLMMailNotification\send(), ilSessionMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCalendarMailNotification\send(), and ilForumMailNotification\setIsCronjob().
|
protected |
Definition at line 399 of file class.ilMailNotification.php.
References initMail(), and Monolog\Handler\mail().
Referenced by ilTestManScoringParticipantNotification\buildBody(), ilSystemNotification\compose(), ilRegistrationMailNotification\send(), ilLMMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilSessionMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilWorkflowEngineMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), sendMail(), and ilTestMailNotification\sendSimpleNotification().
|
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(), ilLMMailNotification\send(), ilSessionMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), and ilCalendarMailNotification\send().
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().
ilMailNotification::getObjType | ( | ) |
Get object type.
Definition at line 310 of file class.ilMailNotification.php.
References $obj_type.
Referenced by ilSystemNotification\compose(), createPermanentLink(), and isRefIdAccessible().
ilMailNotification::getRecipients | ( | ) |
get array of recipients
Definition at line 156 of file class.ilMailNotification.php.
References $recipients.
Referenced by ilRegistrationMimeMailNotification\__construct(), ilForumMailNotification\appendAttachments(), ilTestManScoringParticipantNotification\getRecipient(), ilTestManScoringParticipantNotification\send(), ilRegistrationMailNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilMailCronOrphanedMailsNotification\send(), ilLMMailNotification\send(), ilSessionMembershipMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilExerciseMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), and ilCalendarMailNotification\send().
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().
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().
|
protected |
Definition at line 113 of file class.ilMailNotification.php.
References $subject.
Referenced by ilMailSummaryNotification\send(), sendMail(), and ilMimeMailNotification\sendMimeMail().
ilMailNotification::getType | ( | ) |
Get notification type.
Definition at line 78 of file class.ilMailNotification.php.
References $type.
Referenced by ilRegistrationMimeMailNotification\__construct(), ilForumMailNotification\appendAttachments(), ilRegistrationMailNotification\send(), ilLMMailNotification\send(), ilSessionMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), and ilCalendarMailNotification\send().
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().
|
protected |
Init language.
int | $a_usr_id |
Definition at line 192 of file class.ilMailNotification.php.
References getUserLanguage().
Referenced by ilTestManScoringParticipantNotification\__construct(), ilSystemNotification\compose(), ilMailSummaryNotification\send(), ilDiskQuotaSummaryNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilWorkflowEngineMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
|
protected |
Init language by ISO2 code.
string | $a_code |
Definition at line 223 of file class.ilMailNotification.php.
References ilLanguageFactory\_getLanguage().
|
protected |
Definition at line 391 of file class.ilMailNotification.php.
References getSender(), and Monolog\Handler\mail().
Referenced by ilTestManScoringParticipantNotification\__construct(), ilSystemNotification\compose(), getMail(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilLMMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilSessionMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilWorkflowEngineMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
|
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.
References getObjType().
Referenced by ilSystemNotification\compose().
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 |
Definition at line 355 of file class.ilMailNotification.php.
References $a_type, $error, $recipients, ilObjUser\_lookupLogin(), array, ilLogLevel\ERROR, getAttachments(), getBody(), ilLoggerFactory\getLogger(), getMail(), and getSubject().
Referenced by ilTestManScoringParticipantNotification\send(), ilRegistrationMailNotification\send(), ilLMMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilSessionMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilWorkflowEngineMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
ilMailNotification::setAdditionalInformation | ( | array | $a_info | ) |
Additional information for creating notification mails.
array | $a_info |
Definition at line 319 of file class.ilMailNotification.php.
Referenced by ilTestScoringGUI\saveManScoringParticipantScreen().
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().
|
protected |
string | $a_body |
Definition at line 121 of file class.ilMailNotification.php.
Referenced by ilRegistrationMimeMailNotification\__construct(), ilForumMailNotification\appendAttachments(), ilTestManScoringParticipantNotification\buildBody(), ilSystemNotification\compose(), ilMailSummaryNotification\send(), ilRegistrationMailNotification\send(), ilLMMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilSessionMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilWorkflowEngineMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
ilMailNotification::setLangModules | ( | array | $a_modules | ) |
Set lang modules.
array | $a_modules |
Definition at line 183 of file class.ilMailNotification.php.
Referenced by ilIndividualAssessmentPrimitiveInternalNotificator\__construct().
|
protected |
ilLanguage | $a_language |
Definition at line 240 of file class.ilMailNotification.php.
Referenced by ilCalendarMailNotification\send().
ilMailNotification::setObjId | ( | $a_obj_id | ) |
int | $a_obj_id |
Definition at line 300 of file class.ilMailNotification.php.
References ilObject\_lookupType().
Referenced by setRefId().
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().
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().
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().
|
protected |
string | $a_subject |
Definition at line 105 of file class.ilMailNotification.php.
Referenced by ilRegistrationMimeMailNotification\__construct(), ilTestManScoringParticipantNotification\buildSubject(), ilSystemNotification\compose(), ilMailSummaryNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilRegistrationMailNotification\send(), ilMailCronOrphanedMailsNotification\send(), ilLMMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilSessionMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilWorkflowEngineMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
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 ilSessionMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), and ilGroupMembershipMailNotification\send().
|
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(), ilCronDeleteInactiveUserReminderMailNotification\send(), and ilMailCronOrphanedMailsNotification\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(), and ilForumMailNotification\setIsCronjob().
|
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.