ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilMimeMailNotification Class Reference
+ 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 (protected bool $is_in_wsp=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 $sender_factory
 
- 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 = []
 
ilWorkspaceTree $wsp_tree
 
ilWorkspaceAccessHandler $wsp_access_handler
 

Additional Inherited Members

- Data Fields inherited from ilMailNotification
final const int SUBJECT_TITLE_LENGTH = 60
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilMimeMailNotification::__construct ( bool  $a_is_personal_workspace = false)

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

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

28  {
29  global $DIC;
30  $this->sender_factory = $DIC->mail()->mime()->senderFactory();
31  parent::__construct($a_is_personal_workspace);
32  }
global $DIC
Definition: shib_login.php:26
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getCurrentRecipient()

ilMimeMailNotification::getCurrentRecipient ( )

◆ getMimeMail()

ilMimeMailNotification::getMimeMail ( )

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

References $mime_mail.

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

◆ initLanguage()

ilMimeMailNotification::initLanguage ( int  $a_usr_id)
protected

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

References ilObjectFactory\getInstanceByObjId(), ilMailNotification\getLanguage(), initLanguageByIso2Code(), ilUtil\is_email(), and setCurrentRecipient().

61  : void
62  {
63  parent::initLanguage($a_usr_id);
64  $this->getLanguage()->loadLanguageModule('registration');
65  }
+ Here is the call graph for this function:

◆ initLanguageByIso2Code()

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

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

References ilMailNotification\getLanguage().

Referenced by initLanguage(), ILIAS\User\Profile\ChangeMailMail\sendEmailToExistingAddress(), ILIAS\User\Profile\ChangeMailMail\sendEmailToNewEmailAddress(), ILIAS\LegalDocuments\ConsumerToolbox\Mail\sendGeneric(), and ilAccountRegistrationMail\sendLanguageVariableBasedAccountMail().

55  : void
56  {
57  parent::initLanguageByIso2Code($a_code);
58  $this->getLanguage()->loadLanguageModule('registration');
59  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initMimeMail()

◆ sendMimeMail()

ilMimeMailNotification::sendMimeMail ( string  $a_rcp)

◆ setCurrentRecipient()

ilMimeMailNotification::setCurrentRecipient ( string  $current_recipient)

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

References $current_recipient.

Referenced by initLanguage().

93  {
94  $this->current_recipient = $current_recipient;
95  return $this;
96  }
+ Here is the caller graph for this function:

◆ setMimeMail()

ilMimeMailNotification::setMimeMail ( ilMimeMail  $mime_mail)

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

References $mime_mail.

104  {
105  $this->mime_mail = $mime_mail;
106  return $this;
107  }

◆ setSubject()

Field Documentation

◆ $current_recipient

string ilMimeMailNotification::$current_recipient
protected

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

Referenced by getCurrentRecipient(), and setCurrentRecipient().

◆ $mime_mail

ilMimeMail ilMimeMailNotification::$mime_mail
protected

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

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

◆ $sender_factory

ilMailMimeSenderFactory ilMimeMailNotification::$sender_factory
protected

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


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