ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\LegalDocuments\ConsumerToolbox\Mail Class Reference
+ Inheritance diagram for ILIAS\LegalDocuments\ConsumerToolbox\Mail:
+ Collaboration diagram for ILIAS\LegalDocuments\ConsumerToolbox\Mail:

Public Member Functions

 __construct ()
 
 sendGeneric (string $subject, string $body)
 
- Public Member Functions inherited from ilMimeMailNotification
 __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 ()
 

Additional Inherited Members

- Data Fields inherited from ilMailNotification
final const int SUBJECT_TITLE_LENGTH = 60
 
- Protected Member Functions inherited from ilMimeMailNotification
 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 inherited from ilMimeMailNotification
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
 

Detailed Description

Definition at line 27 of file Mail.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\LegalDocuments\ConsumerToolbox\Mail::__construct ( )

Definition at line 29 of file Mail.php.

References ILIAS\GlobalScreen\Provider\__construct().

30  {
31  parent::__construct(false);
32  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ sendGeneric()

ILIAS\LegalDocuments\ConsumerToolbox\Mail::sendGeneric ( string  $subject,
string  $body 
)

Definition at line 34 of file Mail.php.

References ilMail\_getInstallationSignature(), ilMailNotification\appendBody(), ilMimeMailNotification\getCurrentRecipient(), ilMailNotification\getRecipients(), ilMimeMailNotification\initLanguageByIso2Code(), ilMimeMailNotification\initMimeMail(), ilMimeMailNotification\sendMimeMail(), and ilMimeMailNotification\setSubject().

34  : void
35  {
36  foreach ($this->getRecipients() as $rcp) {
37  try {
38  $this->handleCurrentRecipient($rcp);
39  } catch (ilMailException) {
40  continue;
41  }
42 
43  if (!$this->getCurrentRecipient()) {
44  continue;
45  }
46 
47  $this->initMimeMail();
48  $this->initLanguageByIso2Code();
49 
50  $this->setSubject($subject);
51  $this->appendBody($body);
53 
54  $this->sendMimeMail($this->getCurrentRecipient());
55  }
56  }
static _getInstallationSignature()
+ Here is the call graph for this function:

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