ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 $DIC, ilLanguageFactory\_getLanguage(), and setSender().
|
protected |
Append body text.
string | $a_body |
Definition at line 130 of file class.ilMailNotification.php.
Referenced by ilRegistrationMimeMailNotification\__construct(), ilMailSummaryNotification\__construct(), ilForumMailNotification\addLinkToMail(), ilCalendarMailNotification\appendAppointmentDetails(), ilForumMailNotification\appendAttachments(), ilTestManScoringParticipantNotification\buildBody(), ilSystemNotification\compose(), ilForumMailNotification\createMail(), ilMailCronOrphanedMailsNotification\getOrphandMailsBody(), ilRegistrationMailNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilMailCronOrphanedMailsNotification\send(), ilDiskQuotaSummaryNotification\send(), ilSessionMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilLearningSequenceMembershipMailNotification\send(), ilLMMailNotification\send(), ilExerciseMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), ilAccountRegistrationMail\sendLanguageVariableBasedAccountMail(), and ilTestMailNotification\sendSimpleNotification().
|
protected |
array | $a_params | |
string | $a_append |
Definition at line 394 of file class.ilMailNotification.php.
References ilLink\_getLink(), ilWorkspaceAccessHandler\getGotoLink(), getObjId(), getObjType(), and getRefId().
Referenced by ilSystemNotification\compose(), ilSessionMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), and ilCalendarMailNotification\send().
ilMailNotification::getAdditionalInformation | ( | ) |
Definition at line 319 of file class.ilMailNotification.php.
References $additional_info.
Referenced by ilRegistrationMimeMailNotification\__construct(), ilTestManScoringParticipantNotification\buildBody(), ilTestManScoringParticipantNotification\buildSubject(), ilMailCronOrphanedMailsNotification\getOrphandMailsBody(), ilRegistrationMailNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilSessionMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilCourseMembershipMailNotification\send(), and ilGroupMembershipMailNotification\send().
ilMailNotification::getAttachments | ( | ) |
Get attachments.
Definition at line 173 of file class.ilMailNotification.php.
References $attachments.
Referenced by ilCalendarMailNotification\deleteAttachments(), and sendMail().
ilMailNotification::getBlockBorder | ( | ) |
Get (ascii) block border.
Definition at line 454 of file class.ilMailNotification.php.
Referenced by ilSystemNotification\compose().
|
protected |
Definition at line 138 of file class.ilMailNotification.php.
References $body.
Referenced by ilMailSummaryNotification\__construct(), sendMail(), and ilMimeMailNotification\sendMimeMail().
|
protected |
Definition at line 243 of file class.ilMailNotification.php.
References $language.
Referenced by ilTestManScoringParticipantNotification\__construct(), ilRegistrationMimeMailNotification\__construct(), ilMailSummaryNotification\__construct(), ilTestManScoringParticipantNotification\buildBody(), ilSystemNotification\compose(), ilForumMailNotification\createMail(), getLanguageText(), ilMailCronOrphanedMailsNotification\getOrphandMailsBody(), ilMimeMailNotification\initLanguage(), ilRegistrationMailNotification\initLanguage(), ilLMMailNotification\initLanguage(), ilExerciseMailNotification\initLanguage(), ilSessionMembershipMailNotification\initLanguage(), ilGroupMembershipMailNotification\initLanguage(), ilLearningSequenceMembershipMailNotification\initLanguage(), ilCourseMembershipMailNotification\initLanguage(), ilMailCronOrphanedMailsNotification\initLanguageByIso2Code(), ilCronDeleteInactiveUserReminderMailNotification\initLanguageByIso2Code(), ilMimeMailNotification\initLanguageByIso2Code(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilRegistrationMailNotification\send(), ilMailCronOrphanedMailsNotification\send(), ilDiskQuotaSummaryNotification\send(), ilSessionMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
|
protected |
string | $a_keyword |
Definition at line 252 of file class.ilMailNotification.php.
References getLanguage().
Referenced by ilMailSummaryNotification\__construct(), ilForumMailNotification\addMailSubject(), ilForumMailNotification\appendAttachments(), ilTestManScoringParticipantNotification\buildBody(), ilTestManScoringParticipantNotification\buildSubject(), ilSystemNotification\compose(), ilCourseMembershipMailNotification\createCourseStatus(), ilGroupMembershipMailNotification\createGroupStatus(), ilLearningSequenceMembershipMailNotification\createLearningSequenceStatus(), ilForumMailNotification\createMail(), ilForumMailNotification\getPermanentLink(), ilRegistrationMailNotification\send(), ilSessionMembershipMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCalendarMailNotification\send(), and ilForumMailNotification\send().
|
protected |
Definition at line 384 of file class.ilMailNotification.php.
References initMail(), and Monolog\Handler\mail().
Referenced by ilTestManScoringParticipantNotification\buildBody(), ilSystemNotification\compose(), ilRegistrationMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilSessionMembershipMailNotification\send(), ilWorkflowEngineMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), sendMail(), and ilTestMailNotification\sendSimpleNotification().
|
protected |
bool | false | $a_shorten |
Definition at line 328 of file class.ilMailNotification.php.
References $txt, ilObject\_lookupTitle(), getObjId(), and ilUtil\shortenText().
Referenced by ilSystemNotification\compose(), ilSessionMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilLMMailNotification\send(), ilExerciseMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), and ilCalendarMailNotification\send().
ilMailNotification::getObjId | ( | ) |
Definition at line 284 of file class.ilMailNotification.php.
References $obj_id.
Referenced by ilSystemNotification\compose(), ilCourseMembershipMailNotification\createCourseStatus(), ilGroupMembershipMailNotification\createGroupStatus(), ilLearningSequenceMembershipMailNotification\createLearningSequenceStatus(), createPermanentLink(), getObjectTitle(), and ilSystemNotification\sendMail().
ilMailNotification::getObjType | ( | ) |
Get object type.
Definition at line 302 of file class.ilMailNotification.php.
References $obj_type.
Referenced by ilSystemNotification\compose(), createPermanentLink(), and isRefIdAccessible().
ilMailNotification::getRecipients | ( | ) |
get array of recipients
Definition at line 155 of file class.ilMailNotification.php.
References $recipients.
Referenced by ilRegistrationMimeMailNotification\__construct(), ilTestManScoringParticipantNotification\getRecipient(), ilTestManScoringParticipantNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilRegistrationMailNotification\send(), ilMailCronOrphanedMailsNotification\send(), ilDiskQuotaSummaryNotification\send(), ilSessionMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilLMMailNotification\send(), ilExerciseMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCalendarMailNotification\send(), and ilForumMailNotification\send().
ilMailNotification::getRefId | ( | ) |
Definition at line 276 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 95 of file class.ilMailNotification.php.
References $sender.
Referenced by ilCalendarMailNotification\addAttachment(), ilCalendarMailNotification\deleteAttachments(), and initMail().
|
protected |
Definition at line 112 of file class.ilMailNotification.php.
References $subject.
Referenced by ilMailSummaryNotification\__construct(), sendMail(), and ilMimeMailNotification\sendMimeMail().
ilMailNotification::getType | ( | ) |
Get notification type.
Definition at line 77 of file class.ilMailNotification.php.
References $type.
Referenced by ilRegistrationMimeMailNotification\__construct(), ilRegistrationMailNotification\send(), ilSessionMembershipMailNotification\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCalendarMailNotification\send(), and ilForumMailNotification\send().
ilMailNotification::getUserLanguage | ( | $a_usr_id | ) |
Get user language.
int | $a_usr_id |
Definition at line 202 of file class.ilMailNotification.php.
References $language, and ilLanguageFactory\_getLanguageOfUser().
Referenced by initLanguage().
|
protected |
Init language.
int | $a_usr_id |
Definition at line 191 of file class.ilMailNotification.php.
References getUserLanguage().
Referenced by ilTestManScoringParticipantNotification\__construct(), ilMailSummaryNotification\__construct(), ilSystemNotification\compose(), ilDiskQuotaSummaryNotification\send(), ilWorkflowEngineMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), and ilTestMailNotification\sendSimpleNotification().
|
protected |
Init language by ISO2 code.
string | $a_code |
Definition at line 220 of file class.ilMailNotification.php.
References ilLanguageFactory\_getLanguage().
|
protected |
Definition at line 376 of file class.ilMailNotification.php.
References getSender(), and Monolog\Handler\mail().
Referenced by ilTestManScoringParticipantNotification\__construct(), ilMailSummaryNotification\__construct(), ilSystemNotification\compose(), getMail(), ilRegistrationMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilSessionMembershipMailNotification\send(), ilWorkflowEngineMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilExerciseMailNotification\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 430 of file class.ilMailNotification.php.
References $DIC, and 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 345 of file class.ilMailNotification.php.
References $a_type, $errors, $recipients, ilObjUser\_lookupLogin(), ilLogLevel\ERROR, getAttachments(), getBody(), ilLoggerFactory\getLogger(), getMail(), and getSubject().
Referenced by ilTestManScoringParticipantNotification\send(), ilRegistrationMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilSessionMembershipMailNotification\send(), ilWorkflowEngineMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilExerciseMailNotification\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 311 of file class.ilMailNotification.php.
Referenced by ilTestScoringGUI\saveManScoringParticipantScreen().
ilMailNotification::setAttachments | ( | $a_att | ) |
Set attachments.
array | $a_att |
Definition at line 164 of file class.ilMailNotification.php.
Referenced by ilCalendarMailNotification\addAttachment(), ilForumMailNotification\appendAttachments(), and ilTestMailNotification\sendAdvancedNotification().
|
protected |
string | $a_body |
Definition at line 120 of file class.ilMailNotification.php.
Referenced by ilRegistrationMimeMailNotification\__construct(), ilMailSummaryNotification\__construct(), ilTestManScoringParticipantNotification\buildBody(), ilSystemNotification\compose(), ilForumMailNotification\createMail(), ilRegistrationMailNotification\send(), ilDiskQuotaSummaryNotification\send(), ilSessionMembershipMailNotification\send(), ilWorkflowEngineMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), ilAccountRegistrationMail\sendLanguageVariableBasedAccountMail(), and ilTestMailNotification\sendSimpleNotification().
ilMailNotification::setLangModules | ( | array | $a_modules | ) |
Set lang modules.
array | $a_modules |
Definition at line 182 of file class.ilMailNotification.php.
Referenced by ilIndividualAssessmentPrimitiveInternalNotificator\__construct().
|
protected |
ilLanguage | $a_language |
Definition at line 235 of file class.ilMailNotification.php.
Referenced by ilCalendarMailNotification\send().
ilMailNotification::setObjId | ( | $a_obj_id | ) |
int | $a_obj_id |
Definition at line 292 of file class.ilMailNotification.php.
References ilObject\_lookupType().
Referenced by setRefId().
ilMailNotification::setRecipients | ( | array | $a_rcp | ) |
array | $a_rcp |
Definition at line 146 of file class.ilMailNotification.php.
Referenced by ilDiskQuotaSummaryNotification\__construct(), ilMailSummaryNotification\__construct(), and ilTestManScoringParticipantNotification\setRecipient().
ilMailNotification::setRefId | ( | $a_id | ) |
int | $a_id |
Definition at line 260 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 86 of file class.ilMailNotification.php.
Referenced by __construct(), and ilCalendarMailNotification\__construct().
|
protected |
string | $a_subject |
Definition at line 104 of file class.ilMailNotification.php.
Referenced by ilRegistrationMimeMailNotification\__construct(), ilMailSummaryNotification\__construct(), ilTestManScoringParticipantNotification\buildSubject(), ilSystemNotification\compose(), ilRegistrationMailNotification\send(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilMailCronOrphanedMailsNotification\send(), ilDiskQuotaSummaryNotification\send(), ilSessionMembershipMailNotification\send(), ilWorkflowEngineMailNotification\send(), ilIndividualAssessmentPrimitiveInternalNotificator\send(), ilLMMailNotification\send(), ilLearningSequenceMembershipMailNotification\send(), ilExerciseMailNotification\send(), ilCourseMembershipMailNotification\send(), ilGroupMembershipMailNotification\send(), ilCalendarMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), ilAccountRegistrationMail\sendLanguageVariableBasedAccountMail(), and ilTestMailNotification\sendSimpleNotification().
ilMailNotification::setType | ( | $a_type | ) |
Set notification type.
int | $a_type |
Definition at line 68 of file class.ilMailNotification.php.
References $a_type.
|
protected |
int | $a_usr_id |
Definition at line 414 of file class.ilMailNotification.php.
References $name, and ilObjUser\_lookupName().
Referenced by ilSessionMembershipMailNotification\send(), ilLearningSequenceMembershipMailNotification\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(), ilLearningSequenceMembershipMailNotification\createLearningSequenceStatus(), 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 ilMailSummaryNotification\__construct(), and ilForumMailNotification\initMail().
|
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 ilMailSummaryNotification\__construct(), and getSender().
|
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 ilForumMailNotification\getPermanentLink(), and 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.