ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

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

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  }

Member Function Documentation

◆ getAttachments()

ilMailValueObject::getAttachments ( )
Returns
string[]

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

References $attachments.

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

◆ getBody()

ilMailValueObject::getBody ( )
Returns
string

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

References $body.

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

◆ getFrom()

ilMailValueObject::getFrom ( )
Returns
string

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

References $from.

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

◆ getRecipients()

ilMailValueObject::getRecipients ( )
Returns
string

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

References $recipients.

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

◆ getRecipientsBCC()

ilMailValueObject::getRecipientsBCC ( )
Returns
string

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

References $recipientsBCC.

88  : string
89  {
90  return $this->recipientsBCC;
91  }

◆ getRecipientsCC()

ilMailValueObject::getRecipientsCC ( )
Returns
string

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

References $recipientsCC.

80  : string
81  {
82  return $this->recipientsCC;
83  }

◆ getSubject()

ilMailValueObject::getSubject ( )
Returns
string

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

References $subject.

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

◆ isUsingPlaceholders()

ilMailValueObject::isUsingPlaceholders ( )
Returns
bool

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

References $usePlaceholders.

120  : bool
121  {
122  return $this->usePlaceholders;
123  }

◆ shouldSaveInSentBox()

ilMailValueObject::shouldSaveInSentBox ( )
Returns
bool

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

References $saveInSentBox.

128  : bool
129  {
130  return $this->saveInSentBox;
131  }

Field Documentation

◆ $attachments

ilMailValueObject::$attachments = []
private

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

Referenced by 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: