ILIAS  release_7 Revision v7.30-3-g800a261c036
ilMailValueObject Class Reference
+ Collaboration diagram for ilMailValueObject:

Public Member Functions

 __construct (string $from, string $recipients, string $recipientsCC, string $recipientsBCC, string $subject, string $body, array $attachments, bool $usePlaceholders=false, bool $saveInSentBox=false)
 
 getRecipients ()
 
 getRecipientsCC ()
 
 getRecipientsBCC ()
 
 getSubject ()
 
 getBody ()
 
 getAttachments ()
 
 isUsingPlaceholders ()
 
 shouldSaveInSentBox ()
 
 getFrom ()
 

Private Attributes

 $recipients
 
 $recipientsCC
 
 $recipientsBCC
 
 $subject
 
 $body
 
 $attachments = []
 
 $usePlaceholders
 
 $saveInSentBox
 
 $from
 

Detailed Description

Author
Niels Theen nthee.nosp@m.n@da.nosp@m.tabay.nosp@m..de

Definition at line 7 of file class.ilMailValueObject.php.

Constructor & Destructor Documentation

◆ __construct()

ilMailValueObject::__construct ( string  $from,
string  $recipients,
string  $recipientsCC,
string  $recipientsBCC,
string  $subject,
string  $body,
array  $attachments,
bool  $usePlaceholders = false,
bool  $saveInSentBox = false 
)
Parameters
string$from
string$recipients
string$recipientsCC
string$recipientsBCC
string$subject
string$body
string[]$attachments
bool$usePlaceholders
bool$saveInSentBox

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

57 {
58 $this->from = $from;
59 $this->recipients = $recipients;
60 $this->recipientsCC = $recipientsCC;
61 $this->recipientsBCC = $recipientsBCC;
62 $this->subject = $subject;
63 $this->body = $body;
64 $this->attachments = array_filter(array_map('trim', $attachments));
65 $this->usePlaceholders = $usePlaceholders;
66 $this->saveInSentBox = $saveInSentBox;
67 }

References $attachments, $body, $from, $recipients, $recipientsBCC, $recipientsCC, $saveInSentBox, $subject, and $usePlaceholders.

Member Function Documentation

◆ getAttachments()

ilMailValueObject::getAttachments ( )
Returns
string[]

Definition at line 112 of file class.ilMailValueObject.php.

112 : array
113 {
114 return $this->attachments;
115 }

References $attachments.

◆ getBody()

ilMailValueObject::getBody ( )
Returns
string

Definition at line 104 of file class.ilMailValueObject.php.

104 : string
105 {
106 return $this->body;
107 }

References $body.

◆ getFrom()

ilMailValueObject::getFrom ( )
Returns
string

Definition at line 136 of file class.ilMailValueObject.php.

136 : string
137 {
138 return $this->from;
139 }

References $from.

◆ getRecipients()

ilMailValueObject::getRecipients ( )
Returns
string

Definition at line 72 of file class.ilMailValueObject.php.

72 : string
73 {
74 return $this->recipients;
75 }

References $recipients.

◆ getRecipientsBCC()

ilMailValueObject::getRecipientsBCC ( )
Returns
string

Definition at line 88 of file class.ilMailValueObject.php.

88 : string
89 {
91 }

References $recipientsBCC.

◆ getRecipientsCC()

ilMailValueObject::getRecipientsCC ( )
Returns
string

Definition at line 80 of file class.ilMailValueObject.php.

80 : string
81 {
83 }

References $recipientsCC.

◆ getSubject()

ilMailValueObject::getSubject ( )
Returns
string

Definition at line 96 of file class.ilMailValueObject.php.

96 : string
97 {
98 return $this->subject;
99 }

References $subject.

◆ isUsingPlaceholders()

ilMailValueObject::isUsingPlaceholders ( )
Returns
bool

Definition at line 120 of file class.ilMailValueObject.php.

120 : bool
121 {
123 }

References $usePlaceholders.

◆ shouldSaveInSentBox()

ilMailValueObject::shouldSaveInSentBox ( )
Returns
bool

Definition at line 128 of file class.ilMailValueObject.php.

128 : bool
129 {
131 }

References $saveInSentBox.

Field Documentation

◆ $attachments

ilMailValueObject::$attachments = []
private

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

Referenced by __construct(), and getAttachments().

◆ $body

ilMailValueObject::$body
private

Definition at line 22 of file class.ilMailValueObject.php.

Referenced by __construct(), and getBody().

◆ $from

ilMailValueObject::$from
private

Definition at line 34 of file class.ilMailValueObject.php.

Referenced by __construct(), and getFrom().

◆ $recipients

ilMailValueObject::$recipients
private

Definition at line 10 of file class.ilMailValueObject.php.

Referenced by __construct(), and getRecipients().

◆ $recipientsBCC

ilMailValueObject::$recipientsBCC
private

Definition at line 16 of file class.ilMailValueObject.php.

Referenced by __construct(), and getRecipientsBCC().

◆ $recipientsCC

ilMailValueObject::$recipientsCC
private

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

Referenced by __construct(), and getRecipientsCC().

◆ $saveInSentBox

ilMailValueObject::$saveInSentBox
private

Definition at line 31 of file class.ilMailValueObject.php.

Referenced by __construct(), and shouldSaveInSentBox().

◆ $subject

ilMailValueObject::$subject
private

Definition at line 19 of file class.ilMailValueObject.php.

Referenced by __construct(), and getSubject().

◆ $usePlaceholders

ilMailValueObject::$usePlaceholders
private

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

Referenced by __construct(), and isUsingPlaceholders().


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