ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilMimeMailNotification Class Reference

Base class for mime mail notifications. More...

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

Public Member Functions

 sendMimeMail ($a_rcp)
 
 setCurrentRecipient ($current_recipient)
 
 getCurrentRecipient ()
 
 setMimeMail ($mime_mail)
 
 getMimeMail ()
 
- 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_type, $a_parse_recipients=true)
 
 getBlockBorder ()
 Get (ascii) block border. More...
 

Protected Member Functions

 initLanguageByIso2Code ($a_code='')
 
 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

 $mime_mail
 
 $current_recipient
 
- 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
 

Additional Inherited Members

- Data Fields inherited from ilMailNotification
const SUBJECT_TITLE_LENGTH = 60
 

Detailed Description

Base class for mime mail notifications.

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

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

Member Function Documentation

◆ getCurrentRecipient()

ilMimeMailNotification::getCurrentRecipient ( )

◆ getMimeMail()

ilMimeMailNotification::getMimeMail ( )
Returns
ilMimeMail

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

References $mime_mail.

◆ initLanguage()

ilMimeMailNotification::initLanguage (   $a_usr_id)
protected
Parameters
int$a_usr_id

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

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

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

◆ initLanguageByIso2Code()

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

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

References ilMailNotification\getLanguage().

Referenced by initLanguage(), and ilAccountRegistrationMail\sendLanguageVariableBasedAccountMail().

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

◆ sendMimeMail()

ilMimeMailNotification::sendMimeMail (   $a_rcp)
Parameters
string$a_rcp

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

References $GLOBALS, $mime_mail, ilMailNotification\getBody(), and ilMailNotification\getSubject().

Referenced by ilRegistrationMimeMailNotification\__construct(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilMailCronOrphanedMailsNotification\send(), and ilAccountRegistrationMail\sendLanguageVariableBasedAccountMail().

29  {
30  $this->mime_mail->To($a_rcp);
31  $this->mime_mail->Subject($this->getSubject(), true);
32  $this->mime_mail->Body($this->getBody());
33  $this->mime_mail->Send();
34  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setCurrentRecipient()

ilMimeMailNotification::setCurrentRecipient (   $current_recipient)
Parameters
string$current_recipient

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

References $current_recipient.

Referenced by initLanguage().

104  {
105  $this->current_recipient = $current_recipient;
106  return $this;
107  }
+ Here is the caller graph for this function:

◆ setMimeMail()

ilMimeMailNotification::setMimeMail (   $mime_mail)
Parameters
ilMimeMail$mime_mail
Returns
ilMimeMailNotification

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

References $mime_mail.

122  {
123  $this->mime_mail = $mime_mail;
124  return $this;
125  }

Field Documentation

◆ $current_recipient

ilMimeMailNotification::$current_recipient
protected

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

Referenced by getCurrentRecipient(), and setCurrentRecipient().

◆ $mime_mail

ilMimeMailNotification::$mime_mail
protected

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

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


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