1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of the Extension "sf_event_mgt" for TYPO3 CMS. |
5
|
|
|
* |
6
|
|
|
* For the full copyright and license information, please read the |
7
|
|
|
* LICENSE.txt file that was distributed with this source code. |
8
|
|
|
*/ |
9
|
|
|
|
10
|
|
|
namespace DERHANSEN\SfEventMgt\Domain\Model\Dto; |
11
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* Custom notification DTO |
14
|
|
|
*/ |
15
|
|
|
class CustomNotification extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
16
|
|
|
{ |
17
|
|
|
public const RECIPIENTS_ALL = 0; |
18
|
|
|
public const RECIPIENTS_CONFIRMED = 1; |
19
|
|
|
public const RECIPIENTS_UNCONFIRMED = 2; |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* @var string |
23
|
|
|
*/ |
24
|
|
|
protected $template = ''; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @var int |
28
|
|
|
*/ |
29
|
|
|
protected $recipients = self::RECIPIENTS_CONFIRMED; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @var string |
33
|
|
|
*/ |
34
|
|
|
protected $overwriteSubject = ''; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @var string |
38
|
|
|
*/ |
39
|
|
|
protected $additionalMessage = ''; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @return string |
43
|
|
|
*/ |
44
|
|
|
public function getTemplate(): string |
45
|
|
|
{ |
46
|
|
|
return $this->template; |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @param string $template |
51
|
|
|
*/ |
52
|
|
|
public function setTemplate(string $template): void |
53
|
|
|
{ |
54
|
|
|
$this->template = $template; |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @return string |
59
|
|
|
*/ |
60
|
|
|
public function getAdditionalMessage(): string |
61
|
|
|
{ |
62
|
|
|
return $this->additionalMessage; |
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @param string $additionalMessage |
67
|
|
|
*/ |
68
|
|
|
public function setAdditionalMessage(string $additionalMessage): void |
69
|
|
|
{ |
70
|
|
|
$this->additionalMessage = $additionalMessage; |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @return int |
75
|
|
|
*/ |
76
|
|
|
public function getRecipients(): int |
77
|
|
|
{ |
78
|
|
|
return $this->recipients; |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* @param int $recipients |
83
|
|
|
*/ |
84
|
|
|
public function setRecipients(int $recipients): void |
85
|
|
|
{ |
86
|
|
|
$this->recipients = $recipients; |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @return string |
91
|
|
|
*/ |
92
|
|
|
public function getOverwriteSubject(): string |
93
|
|
|
{ |
94
|
|
|
return $this->overwriteSubject; |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* @param string $overwriteSubject |
99
|
|
|
*/ |
100
|
|
|
public function setOverwriteSubject(string $overwriteSubject): void |
101
|
|
|
{ |
102
|
|
|
$this->overwriteSubject = $overwriteSubject; |
103
|
|
|
} |
104
|
|
|
} |
105
|
|
|
|