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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?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;
/**
* Template domain model
*/
class Template extends AbstractEntity {
/**
* @var string
*/
protected $extensionKey = '';
/**
* @var string
*/
protected $subject = '';
/**
* @var string
*/
protected $templateName = '';
/**
* @var string
*/
protected $language = '';
/**
* @var string
*/
protected $content = '';
/**
* @var string
*/
protected $fromName = '';
/**
* @var string
*/
protected $fromMail = '';
/**
* @var string
*/
protected $cc = '';
/**
* @var string
*/
protected $bcc = '';
/**
* @var string
*/
protected $replyTo = '';
/**
* @var boolean
*/
protected $isOverwritten = FALSE;
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
/**
* @return string
*/
public function getExtensionKey() {
return $this->extensionKey;
}
/**
* @param string $extensionKey
*/
public function setExtensionKey($extensionKey) {
$this->extensionKey = $extensionKey;
}
/**
* @return string
*/
public function getSubject() {
return $this->subject;
}
/**
* @param string $subject
*/
public function setSubject($subject) {
$this->subject = $subject;
}
/**
* @return string
*/
public function getTemplateName() {
return $this->templateName;
}
/**
* @param string $templateName
*/
public function setTemplateName($templateName) {
$this->templateName = $templateName;
}
/**
* @return string
*/
public function getLanguage() {
return $this->language;
}
/**
* @param string $language
*/
public function setLanguage($language) {
$this->language = $language;
}
/**
* @return string
*/
public function getContent() {
return $this->content;
}
/**
* @param string $content
*/
public function setContent($content) {
$this->content = $content;
}
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
/**
* @return string
*/
public function getFromName() {
return $this->fromName;
}
/**
* @param string $fromName
*/
public function setFromName($fromName) {
$this->fromName = $fromName;
}
/**
* @return string
*/
public function getFromMail() {
return $this->fromMail;
}
/**
* @param string $fromMail
*/
public function setFromMail($fromMail) {
$this->fromMail = trim($fromMail);
}
/**
* @return string
*/
public function getCc() {
return $this->cc;
}
/**
* @param string $cc
*/
public function setCc($cc) {
$this->cc = trim($cc);
}
/**
* @return string
*/
public function getBcc() {
return $this->bcc;
}
/**
* @param string $bcc
*/
public function setBcc($bcc) {
$this->bcc = trim($bcc);
}
/**
* @return string
*/
public function getReplyTo() {
return $this->replyTo;
}
/**
* @param string $replyTo
*/
public function setReplyTo($replyTo) {
$this->replyTo = trim($replyTo);
/**
* @return bool
*/
public function getIsOverwritten() {
return $this->isOverwritten;
}
/**
* @param bool $isOverwritten
*/
public function setIsOverwritten($isOverwritten) {
$this->isOverwritten = (bool) $isOverwritten;
}