Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace SGalinski\SgMail\Domain\Model;
/***************************************************************
* Copyright notice
*
* (c) sgalinski Internet Services (https://www.sgalinski.de)
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
/**
* Mail domain model
*/
class Mail extends AbstractEntity {
// Just some default values for better API calls.
const PRIORITY_LOWEST = 0;
const PRIORITY_LOW = 50;
const PRIORITY_MEDIUM = 100;
const PRIORITY_HIGH = 150;
const PRIORITY_HIGHEST = 200;
/**
* @var string
*/
protected $language = '';
/**
* @var int
*/
protected $priority = 0;
/**
* @var string
*/
protected $bccAddresses = '';
/**
* @var string
*/
protected $ccAddresses = '';
/**
* @var string
*/
protected $fromName = '';
/**
* @var string
*/
protected $extensionKey = '';
/**
* @var string
*/
protected $templateName = '';

Torsten Oppermann
committed
/**
* @var string
*/
protected $replyTo = '';
/**
* @var int
*/
protected $sendingTime = 0;

Torsten Oppermann
committed
/**
* @var int
*/
protected $lastSendingTime = 0;
/**
* @var boolean
*/
protected $isBlacklisted = FALSE;
/**
* @return string
*/
public function getMailSubject() {
public function setMailSubject($mailSubject) {
$this->mailSubject = $mailSubject;
}
/**
* @return string
*/
public function getMailBody() {
public function setMailBody($mailBody) {
$this->mailBody = $mailBody;
}
/**
* @return string
*/
public function getToAddress() {
public function setToAddress($toAddress) {
$this->toAddress = $toAddress;
}
/**
* @return string
*/
public function getFromAddress() {
public function setFromAddress($fromAddress) {
$this->fromAddress = $fromAddress;
}
/**
* @return int
*/
public function getPriority() {
return $this->priority;
}
/**
* @param int $priority
* @return void
*/
public function setPriority($priority) {
$this->priority = (int) $priority;
}
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
/**
* @return string
*/
public function getBccAddresses() {
return $this->bccAddresses;
}
/**
* @param string $bccAddresses
*/
public function setBccAddresses($bccAddresses) {
$this->bccAddresses = $bccAddresses;
}
/**
* @return string
*/
public function getCcAddresses() {
return $this->ccAddresses;
}
/**
* @param string $ccAddresses
*/
public function setCcAddresses($ccAddresses) {
$this->ccAddresses = $ccAddresses;
}
/**
* @return string
*/
public function getFromName() {
return $this->fromName;
}
/**
* @param string $fromName
*/
public function setFromName($fromName) {
$this->fromName = $fromName;
}
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
/**
* @return string
*/
public function getExtensionKey() {
return $this->extensionKey;
}
/**
* @param string $extensionKey
*/
public function setExtensionKey($extensionKey) {
$this->extensionKey = $extensionKey;
}
/**
* @return string
*/
public function getTemplateName() {
return $this->templateName;
}
/**
* @param string $templateName
*/
public function setTemplateName($templateName) {
$this->templateName = $templateName;
}

Torsten Oppermann
committed
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
/**
* @return string
*/
public function getReplyTo() {
return $this->replyTo;
}
/**
* @param string $replyTo
*/
public function setReplyTo($replyTo) {
$this->replyTo = $replyTo;
}
/**
* @return int
*/
public function getSendingTime() {
return $this->sendingTime;
}
/**
* @param int $sendingTime
*/
public function setSendingTime($sendingTime) {
$this->sendingTime = (int) $sendingTime;

Torsten Oppermann
committed
}

Torsten Oppermann
committed
/**
* @return int
*/
public function getLastSendingTime() {
return $this->lastSendingTime;
}
/**
* @param int $sendingTime
*/
public function setLastSendingTime($sendingTime) {
$this->lastSendingTime = (int) $sendingTime;

Torsten Oppermann
committed
}
/**
* @return string
*/
public function getLanguage() {
return $this->language;
}
/**
* @param string $language
*/
public function setLanguage($language) {
$this->language = $language;
}
/**
* @return bool
*/
public function isBlacklisted() {
return $this->isBlacklisted;
}
/**
* @param bool $isBlacklisted
*/
public function setIsBlacklisted(bool $isBlacklisted) {
$this->isBlacklisted = $isBlacklisted;
}