1
|
|
|
<?php |
2
|
|
|
namespace DERHANSEN\SfEventMgt\Domain\Model\Dto; |
3
|
|
|
|
4
|
|
|
/* |
5
|
|
|
* This file is part of the TYPO3 CMS project. |
6
|
|
|
* |
7
|
|
|
* It is free software; you can redistribute it and/or modify it under |
8
|
|
|
* the terms of the GNU General Public License, either version 2 |
9
|
|
|
* of the License, or any later version. |
10
|
|
|
* |
11
|
|
|
* For the full copyright and license information, please read the |
12
|
|
|
* LICENSE.txt file that was distributed with this source code. |
13
|
|
|
* |
14
|
|
|
* The TYPO3 project - inspiring people to share! |
15
|
|
|
*/ |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* UserRegistrationDemand |
19
|
|
|
* |
20
|
|
|
* @author Torben Hansen <[email protected]> |
21
|
|
|
*/ |
22
|
|
|
class UserRegistrationDemand extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
23
|
|
|
{ |
24
|
|
|
/** |
25
|
|
|
* Display mode |
26
|
|
|
* |
27
|
|
|
* @var string |
28
|
|
|
*/ |
29
|
|
|
protected $displayMode = 'all'; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* Storage page |
33
|
|
|
* |
34
|
|
|
* @var string |
35
|
|
|
*/ |
36
|
|
|
protected $storagePage; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* Order field |
40
|
|
|
* |
41
|
|
|
* @var string |
42
|
|
|
*/ |
43
|
|
|
protected $orderField = ''; |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* Order direction |
47
|
|
|
* |
48
|
|
|
* @var string |
49
|
|
|
*/ |
50
|
|
|
protected $orderDirection = ''; |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* Current DateTime |
54
|
|
|
* |
55
|
|
|
* @var \DateTime |
56
|
|
|
*/ |
57
|
|
|
protected $currentDateTime = null; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* Frontend user |
61
|
|
|
* |
62
|
|
|
* @var \TYPO3\CMS\Extbase\Domain\Model\FrontendUser |
63
|
|
|
*/ |
64
|
|
|
protected $user = null; |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* Returns displayMode |
68
|
|
|
* |
69
|
|
|
* @return string |
70
|
|
|
*/ |
71
|
1 |
|
public function getDisplayMode() |
72
|
|
|
{ |
73
|
1 |
|
return $this->displayMode; |
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* Sets displaymode |
78
|
|
|
* |
79
|
|
|
* @param string $displayMode |
80
|
|
|
* @return void |
81
|
|
|
*/ |
82
|
1 |
|
public function setDisplayMode($displayMode) |
83
|
|
|
{ |
84
|
1 |
|
$this->displayMode = $displayMode; |
85
|
1 |
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* Sets storagePage |
89
|
|
|
* |
90
|
|
|
* @return string |
91
|
|
|
*/ |
92
|
1 |
|
public function getStoragePage() |
93
|
|
|
{ |
94
|
1 |
|
return $this->storagePage; |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* Returns storagePage |
99
|
|
|
* |
100
|
|
|
* @param string $storagePage |
101
|
|
|
* @return void |
102
|
|
|
*/ |
103
|
1 |
|
public function setStoragePage($storagePage) |
104
|
|
|
{ |
105
|
1 |
|
$this->storagePage = $storagePage; |
106
|
1 |
|
} |
107
|
|
|
|
108
|
|
|
/** |
109
|
|
|
* Returns orderField |
110
|
|
|
* |
111
|
|
|
* @return string |
112
|
|
|
*/ |
113
|
2 |
|
public function getOrderField() |
114
|
|
|
{ |
115
|
2 |
|
return $this->orderField; |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* Sets orderField |
120
|
|
|
* |
121
|
|
|
* @param string $orderField |
122
|
|
|
* @return void |
123
|
|
|
*/ |
124
|
1 |
|
public function setOrderField($orderField) |
125
|
|
|
{ |
126
|
1 |
|
$this->orderField = $orderField; |
127
|
1 |
|
} |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* Returns orderDirection |
131
|
|
|
* |
132
|
|
|
* @return string |
133
|
|
|
*/ |
134
|
2 |
|
public function getOrderDirection() |
135
|
|
|
{ |
136
|
2 |
|
return $this->orderDirection; |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
/** |
140
|
|
|
* Sets orderDirection |
141
|
|
|
* |
142
|
|
|
* @param string $orderDirection |
143
|
|
|
* @return void |
144
|
|
|
*/ |
145
|
1 |
|
public function setOrderDirection($orderDirection) |
146
|
|
|
{ |
147
|
1 |
|
$this->orderDirection = $orderDirection; |
148
|
1 |
|
} |
149
|
|
|
/** |
150
|
|
|
* Sets the current DateTime |
151
|
|
|
* |
152
|
|
|
* @param \DateTime $currentDateTime CurrentDateTime |
153
|
|
|
* |
154
|
|
|
* @return void |
155
|
|
|
*/ |
156
|
1 |
|
public function setCurrentDateTime(\DateTime $currentDateTime) |
157
|
|
|
{ |
158
|
1 |
|
$this->currentDateTime = $currentDateTime; |
159
|
1 |
|
} |
160
|
|
|
|
161
|
|
|
/** |
162
|
|
|
* Returns the current datetime |
163
|
|
|
* |
164
|
|
|
* @return \DateTime |
165
|
|
|
*/ |
166
|
2 |
|
public function getCurrentDateTime() |
167
|
|
|
{ |
168
|
2 |
|
if ($this->currentDateTime != null) { |
169
|
1 |
|
return $this->currentDateTime; |
170
|
|
|
} |
171
|
1 |
|
return new \DateTime; |
172
|
|
|
} |
173
|
|
|
|
174
|
|
|
/** |
175
|
|
|
* Returns the frontend user |
176
|
|
|
* |
177
|
|
|
* @return \TYPO3\CMS\Extbase\Domain\Model\FrontendUser |
178
|
|
|
*/ |
179
|
2 |
|
public function getUser() |
180
|
|
|
{ |
181
|
2 |
|
return $this->user; |
182
|
|
|
} |
183
|
|
|
|
184
|
|
|
/** |
185
|
|
|
* Sets the frontend user |
186
|
|
|
* |
187
|
|
|
* @param \TYPO3\CMS\Extbase\Domain\Model\FrontendUser $user |
188
|
|
|
* @return void |
189
|
|
|
*/ |
190
|
1 |
|
public function setUser($user) |
191
|
|
|
{ |
192
|
1 |
|
$this->user = $user; |
193
|
1 |
|
} |
194
|
|
|
} |
195
|
|
|
|