|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Inheritance diagram for ilMailEventNotificationSender:
Collaboration diagram for ilMailEventNotificationSender:Public Member Functions | |||||||
| __construct (ilForumNotificationMailData $provider, \ilLogger $logger) | |||||||
| ilForumMailNotification constructor. More... | |||||||
| sendMail (array $a_rcp, $a_parse_recipients=true) | |||||||
| |||||||
| send () | |||||||
| isCronjob () | |||||||
| setIsCronjob ($is_cronjob) | |||||||
Public Member Functions inherited from ilMailNotification | |||||||
| __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_parse_recipients=true) | |||||||
| getBlockBorder () | |||||||
| Get (ascii) block border. More... | |||||||
Data Fields | |
| const | TYPE_THREAD_DELETED = 54 |
| const | TYPE_POST_NEW = 60 |
| const | TYPE_POST_ACTIVATION = 61 |
| const | TYPE_POST_UPDATED = 62 |
| const | TYPE_POST_CENSORED = 63 |
| const | TYPE_POST_DELETED = 64 |
| const | TYPE_POST_ANSWERED = 65 |
| const | TYPE_POST_UNCENSORED = 66 |
| const | PERMANENT_LINK_POST = 'PL_Post' |
| const | PERMANENT_LINK_FORUM = 'PL_Forum' |
Data Fields inherited from ilMailNotification | |
| const | SUBJECT_TITLE_LENGTH = 60 |
Protected Member Functions | ||||
| initMail () | ||||
| ||||
| setSubject ($a_subject) | ||||
| ||||
| initLanguage ($a_usr_id) | ||||
Protected Member Functions inherited from ilMailNotification | ||||
| 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 | |
| $is_cronjob = false | |
| $provider | |
| $logger | |
Protected Attributes inherited from ilMailNotification | |
| $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 | |
Private Member Functions | |
| getPermanentLink ($type=self::PERMANENT_LINK_POST) | |
| getSecurePostMessage () | |
| createMailValueObjectsWithAttachments (string $subjectLanguageId, int $recipientUserId, string $customText, string $action, string $date='') | |
| Add body and send mail with attachments. More... | |
| createMailValueObjectWithoutAttachments (string $subjectLanguageId, int $recipientUserId, string $customText, string $action, string $date='') | |
| Add body and send mail without attachments. More... | |
| createMailBodyText (string $subject, int $userId, string $customText, string $action, string $date) | |
| createAttachmentText () | |
| createAttachmentLinkText () | |
| addMailSubject (string $subject) | |
| createMailDate (string $date) | |
| createSubjectText (string $subject) | |
Definition at line 7 of file class.ilMailEventNotificationSender.php.
| ilMailEventNotificationSender::__construct | ( | ilForumNotificationMailData | $provider, |
| \ilLogger | $logger | ||
| ) |
ilForumMailNotification constructor.
| ilForumNotificationMailData | $provider | |
| ilLogger | $logger |
Definition at line 49 of file class.ilMailEventNotificationSender.php.
References $logger, $provider, and ILIAS\GlobalScreen\Provider\__construct().
Here is the call graph for this function:
|
private |
| string | $subject |
Definition at line 545 of file class.ilMailEventNotificationSender.php.
References createSubjectText(), initMail(), and setSubject().
Referenced by createMailBodyText().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 533 of file class.ilMailEventNotificationSender.php.
References ilMailNotification\$body, ilMail\_getInstallationSignature(), and getPermanentLink().
Referenced by createMailValueObjectsWithAttachments().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 519 of file class.ilMailEventNotificationSender.php.
References ilMailNotification\getLanguageText().
Referenced by createMailValueObjectsWithAttachments().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 476 of file class.ilMailEventNotificationSender.php.
References ilMailNotification\$body, $message, addMailSubject(), createMailDate(), ilMailNotification\getLanguage(), ilMailNotification\getLanguageText(), ilMail\getSalutation(), and getSecurePostMessage().
Referenced by createMailValueObjectsWithAttachments(), and createMailValueObjectWithoutAttachments().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| string | $date |
| ilDateTimeException |
Definition at line 559 of file class.ilMailEventNotificationSender.php.
References ilDatePresentation\formatDate(), IL_CAL_DATETIME, language(), and ilDatePresentation\setLanguage().
Referenced by createMailBodyText().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Add body and send mail with attachments.
| string | $subjectLanguageId | - Language id of subject |
| int | $recipientUserId | - id of the user recipient of the mail |
| string | $customText | - mail text after salutation |
| string | $action | - Language id of action |
| string | null | $date | - date to be added in mail |
Definition at line 396 of file class.ilMailEventNotificationSender.php.
References ilObjUser\_lookupLogin(), createAttachmentLinkText(), createAttachmentText(), createMailBodyText(), and createSubjectText().
Referenced by send().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Add body and send mail without attachments.
| string | $subjectLanguageId | - Language id of subject |
| int | $recipientUserId | |
| string | $customText | - mail text after salutation |
| string | $action | - Language id of action |
| string | null | $date | - date to be added in mail |
Definition at line 444 of file class.ilMailEventNotificationSender.php.
References ilObjUser\_lookupLogin(), createMailBodyText(), and createSubjectText().
Referenced by send().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| string | $subject |
Definition at line 576 of file class.ilMailEventNotificationSender.php.
References ilMailNotification\getLanguageText().
Referenced by addMailSubject(), createMailValueObjectsWithAttachments(), and createMailValueObjectWithoutAttachments().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| string | $type |
Definition at line 316 of file class.ilMailEventNotificationSender.php.
References $DIC, ilMailNotification\$type, ilUtil\_getHttpPath(), ilMailNotification\getLanguageText(), and isCronjob().
Referenced by createAttachmentLinkText().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 369 of file class.ilMailEventNotificationSender.php.
Referenced by createMailBodyText().
Here is the caller graph for this function:
|
protected |
| int | $a_usr_id |
Reimplemented from ilMailNotification.
Definition at line 290 of file class.ilMailEventNotificationSender.php.
References language().
Referenced by send().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Reimplemented from ilMailNotification.
Definition at line 59 of file class.ilMailEventNotificationSender.php.
References ilMailNotification\$mail.
Referenced by addMailSubject().
Here is the caller graph for this function:| ilMailEventNotificationSender::isCronjob | ( | ) |
Definition at line 299 of file class.ilMailEventNotificationSender.php.
References $is_cronjob.
Referenced by getPermanentLink().
Here is the caller graph for this function:| ilMailEventNotificationSender::send | ( | ) |
| ilException |
Definition at line 95 of file class.ilMailEventNotificationSender.php.
References $DIC, $ilSetting, $lng, createMailValueObjectsWithAttachments(), createMailValueObjectWithoutAttachments(), ilMailFormCall\getContextId(), ilMailFormCall\getContextParameters(), ilMailNotification\getLanguageText(), ilMailNotification\getRecipients(), ilMailNotification\getType(), initLanguage(), ilDatePresentation\setLanguage(), ilDatePresentation\setUseRelativeDates(), TYPE_POST_ACTIVATION, TYPE_POST_ANSWERED, TYPE_POST_CENSORED, TYPE_POST_DELETED, TYPE_POST_NEW, TYPE_POST_UNCENSORED, TYPE_POST_UPDATED, TYPE_THREAD_DELETED, and ilDatePresentation\useRelativeDates().
Here is the call graph for this function:| ilMailEventNotificationSender::sendMail | ( | array | $a_rcp, |
$a_parse_recipients = true |
|||
| ) |
| array | $a_rcp | |
| bool | true | $a_parse_recipients |
Reimplemented from ilMailNotification.
Definition at line 70 of file class.ilMailEventNotificationSender.php.
| ilMailEventNotificationSender::setIsCronjob | ( | $is_cronjob | ) |
| boolean | $is_cronjob |
Definition at line 307 of file class.ilMailEventNotificationSender.php.
References $is_cronjob.
|
protected |
| string | $a_subject |
Reimplemented from ilMailNotification.
Definition at line 83 of file class.ilMailEventNotificationSender.php.
Referenced by addMailSubject().
Here is the caller graph for this function:
|
protected |
Definition at line 32 of file class.ilMailEventNotificationSender.php.
Referenced by isCronjob(), and setIsCronjob().
|
protected |
Definition at line 42 of file class.ilMailEventNotificationSender.php.
Referenced by __construct().
|
protected |
Definition at line 37 of file class.ilMailEventNotificationSender.php.
Referenced by __construct().
| const ilMailEventNotificationSender::PERMANENT_LINK_FORUM = 'PL_Forum' |
Definition at line 27 of file class.ilMailEventNotificationSender.php.
| const ilMailEventNotificationSender::PERMANENT_LINK_POST = 'PL_Post' |
Definition at line 25 of file class.ilMailEventNotificationSender.php.
| const ilMailEventNotificationSender::TYPE_POST_ACTIVATION = 61 |
Definition at line 13 of file class.ilMailEventNotificationSender.php.
Referenced by send().
| const ilMailEventNotificationSender::TYPE_POST_ANSWERED = 65 |
Definition at line 21 of file class.ilMailEventNotificationSender.php.
Referenced by send().
| const ilMailEventNotificationSender::TYPE_POST_CENSORED = 63 |
Definition at line 17 of file class.ilMailEventNotificationSender.php.
Referenced by send().
| const ilMailEventNotificationSender::TYPE_POST_DELETED = 64 |
Definition at line 19 of file class.ilMailEventNotificationSender.php.
Referenced by send().
| const ilMailEventNotificationSender::TYPE_POST_NEW = 60 |
Definition at line 11 of file class.ilMailEventNotificationSender.php.
Referenced by send().
| const ilMailEventNotificationSender::TYPE_POST_UNCENSORED = 66 |
Definition at line 23 of file class.ilMailEventNotificationSender.php.
Referenced by send().
| const ilMailEventNotificationSender::TYPE_POST_UPDATED = 62 |
Definition at line 15 of file class.ilMailEventNotificationSender.php.
Referenced by send().
| const ilMailEventNotificationSender::TYPE_THREAD_DELETED = 54 |
Definition at line 9 of file class.ilMailEventNotificationSender.php.
Referenced by send().