ILIAS  release_8 Revision v8.24
ilMimeMailNotification Class Reference

Base class for mime mail notifications. More...

+ Inheritance diagram for ilMimeMailNotification:
+ Collaboration diagram for ilMimeMailNotification:

Public Member Functions

 __construct (bool $a_is_personal_workspace=false)
 
 sendMimeMail (string $a_rcp)
 
 setCurrentRecipient (string $current_recipient)
 
 getCurrentRecipient ()
 
 setMimeMail (ilMimeMail $mime_mail)
 
 getMimeMail ()
 
- Public Member Functions inherited from ilMailNotification
 __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 ()
 

Protected Member Functions

 setSubject (string $a_subject)
 
 initMimeMail ()
 
 initLanguageByIso2Code (string $a_code='')
 
 initLanguage (int $a_usr_id)
 
- Protected Member Functions inherited from ilMailNotification
 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

ilMimeMail $mime_mail
 
string $current_recipient
 
ilMailMimeSenderFactory $senderFactory
 
- Protected Attributes inherited from ilMailNotification
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
 

Additional Inherited Members

- Data Fields inherited from ilMailNotification
const SUBJECT_TITLE_LENGTH = 60
 

Detailed Description

Base class for mime mail notifications.

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de

Definition at line 26 of file class.ilMimeMailNotification.php.

Constructor & Destructor Documentation

◆ __construct()

ilMimeMailNotification::__construct ( bool  $a_is_personal_workspace = false)

Reimplemented from ilMailNotification.

Definition at line 32 of file class.ilMimeMailNotification.php.

33 {
34 global $DIC;
35 $this->senderFactory = $DIC["mail.mime.sender.factory"];
36 parent::__construct($a_is_personal_workspace);
37 }
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $DIC, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ getCurrentRecipient()

ilMimeMailNotification::getCurrentRecipient ( )

Definition at line 103 of file class.ilMimeMailNotification.php.

103 : string
104 {
106 }

References $current_recipient.

Referenced by ILIAS\Mail\Cron\ExpiredOrOrphanedMails\MailNotification\send(), and ilCronDeleteInactiveUserReminderMailNotification\send().

+ Here is the caller graph for this function:

◆ getMimeMail()

ilMimeMailNotification::getMimeMail ( )

Definition at line 114 of file class.ilMimeMailNotification.php.

References $mime_mail.

◆ initLanguage()

ilMimeMailNotification::initLanguage ( int  $a_usr_id)
protected

Reimplemented from ilMailNotification.

Reimplemented in ilCronDeleteInactiveUserReminderMailNotification.

Definition at line 66 of file class.ilMimeMailNotification.php.

66 : void
67 {
68 parent::initLanguage($a_usr_id);
69 $this->getLanguage()->loadLanguageModule('registration');
70 }

References ilMailNotification\getLanguage().

+ Here is the call graph for this function:

◆ initLanguageByIso2Code()

ilMimeMailNotification::initLanguageByIso2Code ( string  $a_code = '')
protected

Reimplemented from ilMailNotification.

Reimplemented in ILIAS\Mail\Cron\ExpiredOrOrphanedMails\MailNotification.

Definition at line 60 of file class.ilMimeMailNotification.php.

60 : void
61 {
62 parent::initLanguageByIso2Code($a_code);
63 $this->getLanguage()->loadLanguageModule('registration');
64 }

References ilMailNotification\getLanguage().

+ Here is the call graph for this function:

◆ initMimeMail()

ilMimeMailNotification::initMimeMail ( )
protected

Definition at line 52 of file class.ilMimeMailNotification.php.

53 {
54 $this->mime_mail = new ilMimeMail();
55 $this->mime_mail->From($this->senderFactory->system());
56
57 return $this->mime_mail;
58 }

References $mime_mail.

Referenced by ILIAS\Mail\Cron\ExpiredOrOrphanedMails\MailNotification\send(), and ilCronDeleteInactiveUserReminderMailNotification\send().

+ Here is the caller graph for this function:

◆ sendMimeMail()

ilMimeMailNotification::sendMimeMail ( string  $a_rcp)

Definition at line 39 of file class.ilMimeMailNotification.php.

39 : void
40 {
41 $this->mime_mail->To($a_rcp);
42 $this->mime_mail->Subject($this->getSubject(), true);
43 $this->mime_mail->Body($this->getBody());
44 $this->mime_mail->Send();
45 }

References ilMailNotification\getBody(), and ilMailNotification\getSubject().

Referenced by ILIAS\Mail\Cron\ExpiredOrOrphanedMails\MailNotification\send(), and ilCronDeleteInactiveUserReminderMailNotification\send().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setCurrentRecipient()

ilMimeMailNotification::setCurrentRecipient ( string  $current_recipient)

Definition at line 97 of file class.ilMimeMailNotification.php.

98 {
99 $this->current_recipient = $current_recipient;
100 return $this;
101 }
Base class for mime mail notifications.

References $current_recipient.

◆ setMimeMail()

ilMimeMailNotification::setMimeMail ( ilMimeMail  $mime_mail)

Definition at line 108 of file class.ilMimeMailNotification.php.

109 {
110 $this->mime_mail = $mime_mail;
111 return $this;
112 }

References $mime_mail.

◆ setSubject()

ilMimeMailNotification::setSubject ( string  $a_subject)
protected

Reimplemented from ilMailNotification.

Definition at line 47 of file class.ilMimeMailNotification.php.

47 : string
48 {
49 return $this->subject = $a_subject;
50 }

Referenced by ILIAS\Mail\Cron\ExpiredOrOrphanedMails\MailNotification\send(), and ilCronDeleteInactiveUserReminderMailNotification\send().

+ Here is the caller graph for this function:

Field Documentation

◆ $current_recipient

string ilMimeMailNotification::$current_recipient
protected

Definition at line 29 of file class.ilMimeMailNotification.php.

Referenced by getCurrentRecipient(), and setCurrentRecipient().

◆ $mime_mail

ilMimeMail ilMimeMailNotification::$mime_mail
protected

Definition at line 28 of file class.ilMimeMailNotification.php.

Referenced by getMimeMail(), initMimeMail(), and setMimeMail().

◆ $senderFactory

ilMailMimeSenderFactory ilMimeMailNotification::$senderFactory
protected

Definition at line 30 of file class.ilMimeMailNotification.php.


The documentation for this class was generated from the following file: