1 | <?php |
||
22 | class EventDemand extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
||
23 | { |
||
24 | |||
25 | /** |
||
26 | * Display mode |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $displayMode = 'all'; |
||
31 | |||
32 | /** |
||
33 | * Storage page |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $storagePage; |
||
38 | |||
39 | /** |
||
40 | * Current DateTime |
||
41 | * |
||
42 | * @var \DateTime |
||
43 | */ |
||
44 | protected $currentDateTime = null; |
||
45 | |||
46 | /** |
||
47 | * Category |
||
48 | * |
||
49 | * @var string |
||
50 | */ |
||
51 | protected $category; |
||
52 | |||
53 | /** |
||
54 | * Top event |
||
55 | * |
||
56 | * @var int |
||
57 | */ |
||
58 | protected $topEventRestriction = 0; |
||
59 | |||
60 | /** |
||
61 | * Order field |
||
62 | * |
||
63 | * @var string |
||
64 | */ |
||
65 | protected $orderField = ''; |
||
66 | |||
67 | /** |
||
68 | * Order direction |
||
69 | * |
||
70 | * @var string |
||
71 | */ |
||
72 | protected $orderDirection = ''; |
||
73 | |||
74 | /** |
||
75 | * Query limit |
||
76 | * |
||
77 | * @var int |
||
78 | */ |
||
79 | protected $queryLimit = null; |
||
80 | |||
81 | /** |
||
82 | * Location |
||
83 | * |
||
84 | * @var \DERHANSEN\SfEventMgt\Domain\Model\Location |
||
85 | */ |
||
86 | protected $location = null; |
||
87 | |||
88 | /** |
||
89 | * City for location |
||
90 | * |
||
91 | * @var string |
||
92 | */ |
||
93 | protected $locationCity = ''; |
||
94 | |||
95 | /** |
||
96 | * Country for location |
||
97 | * |
||
98 | * @var string |
||
99 | */ |
||
100 | protected $locationCountry = ''; |
||
101 | |||
102 | /** |
||
103 | * Search Demand |
||
104 | * |
||
105 | * @var \DERHANSEN\SfEventMgt\Domain\Model\Dto\SearchDemand |
||
106 | */ |
||
107 | protected $searchDemand = null; |
||
108 | |||
109 | /** |
||
110 | * Sets the displayMode |
||
111 | * |
||
112 | * @param string $displayMode Displaymode |
||
113 | * |
||
114 | * @return void |
||
115 | */ |
||
116 | 12 | public function setDisplayMode($displayMode) |
|
120 | |||
121 | /** |
||
122 | * Returns the displayMode |
||
123 | * |
||
124 | * @return string |
||
125 | */ |
||
126 | 30 | public function getDisplayMode() |
|
130 | |||
131 | /** |
||
132 | * Sets the storage page |
||
133 | * |
||
134 | * @param string $storagePage Storagepage |
||
135 | * |
||
136 | * @return void |
||
137 | */ |
||
138 | 31 | public function setStoragePage($storagePage) |
|
142 | |||
143 | /** |
||
144 | * Returns the storage page |
||
145 | * |
||
146 | * @return string |
||
147 | */ |
||
148 | 31 | public function getStoragePage() |
|
152 | |||
153 | /** |
||
154 | * Sets the current DateTime |
||
155 | * |
||
156 | * @param \DateTime $currentDateTime CurrentDateTime |
||
157 | * |
||
158 | * @return void |
||
159 | */ |
||
160 | 3 | public function setCurrentDateTime(\DateTime $currentDateTime) |
|
164 | |||
165 | /** |
||
166 | * Returns the current datetime |
||
167 | * |
||
168 | * @return \DateTime |
||
169 | */ |
||
170 | 4 | public function getCurrentDateTime() |
|
171 | { |
||
172 | 4 | if ($this->currentDateTime != null) { |
|
173 | 3 | return $this->currentDateTime; |
|
174 | } |
||
175 | 1 | return new \DateTime; |
|
176 | } |
||
177 | |||
178 | /** |
||
179 | * Sets the category (seperated by comma) |
||
180 | * |
||
181 | * @param string $category Category |
||
182 | * |
||
183 | * @return void |
||
184 | */ |
||
185 | 7 | public function setCategory($category) |
|
189 | |||
190 | /** |
||
191 | * Returns the category (seperated by comma) |
||
192 | * |
||
193 | * @return string |
||
194 | */ |
||
195 | 31 | public function getCategory() |
|
199 | |||
200 | /** |
||
201 | * Returns topEventRestriction |
||
202 | * |
||
203 | * @return int |
||
204 | */ |
||
205 | 31 | public function getTopEventRestriction() |
|
209 | |||
210 | /** |
||
211 | * Sets topEventRestriction |
||
212 | * |
||
213 | * @param int $topEventRestriction TopEventRestriction |
||
214 | * |
||
215 | * @return void |
||
216 | */ |
||
217 | 4 | public function setTopEventRestriction($topEventRestriction) |
|
221 | |||
222 | /** |
||
223 | * Returns the order direction |
||
224 | * |
||
225 | * @return string |
||
226 | */ |
||
227 | 8 | public function getOrderDirection() |
|
231 | |||
232 | /** |
||
233 | * Sets the order direction |
||
234 | * |
||
235 | * @param string $orderDirection OrderDirection |
||
236 | * |
||
237 | * @return void |
||
238 | */ |
||
239 | 8 | public function setOrderDirection($orderDirection) |
|
243 | |||
244 | /** |
||
245 | * Returns the order field |
||
246 | * |
||
247 | * @return string |
||
248 | */ |
||
249 | 31 | public function getOrderField() |
|
253 | |||
254 | /** |
||
255 | * Sets the order field |
||
256 | * |
||
257 | * @param string $orderField OrderField |
||
258 | * |
||
259 | * @return void |
||
260 | */ |
||
261 | 8 | public function setOrderField($orderField) |
|
265 | |||
266 | /** |
||
267 | * Returns the query limit |
||
268 | * |
||
269 | * @return int |
||
270 | */ |
||
271 | 31 | public function getQueryLimit() |
|
275 | |||
276 | /** |
||
277 | * Sets the query limit |
||
278 | * |
||
279 | * @param int $queryLimit QueryLimit |
||
280 | * |
||
281 | * @return void |
||
282 | */ |
||
283 | 2 | public function setQueryLimit($queryLimit) |
|
287 | |||
288 | /** |
||
289 | * Returns the location |
||
290 | * |
||
291 | * @return \DERHANSEN\SfEventMgt\Domain\Model\Location |
||
292 | */ |
||
293 | 31 | public function getLocation() |
|
297 | |||
298 | /** |
||
299 | * Sets the location |
||
300 | * |
||
301 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Location $location Location |
||
302 | * |
||
303 | * @return void |
||
304 | */ |
||
305 | 4 | public function setLocation($location) |
|
309 | |||
310 | /** |
||
311 | * Returns locationCity |
||
312 | * |
||
313 | * @return string |
||
314 | */ |
||
315 | 31 | public function getLocationCity() |
|
319 | |||
320 | /** |
||
321 | * Sets locationCity |
||
322 | * |
||
323 | * @param string $locationCity LocationCity |
||
324 | * |
||
325 | * @return void |
||
326 | */ |
||
327 | 3 | public function setLocationCity($locationCity) |
|
331 | |||
332 | /** |
||
333 | * Returns locationCountry |
||
334 | * |
||
335 | * @return string |
||
336 | */ |
||
337 | 31 | public function getLocationCountry() |
|
341 | |||
342 | /** |
||
343 | * Sets locationCountry |
||
344 | * |
||
345 | * @param string $locationCountry LocationCountry |
||
346 | * |
||
347 | * @return void |
||
348 | */ |
||
349 | 3 | public function setLocationCountry($locationCountry) |
|
353 | |||
354 | /** |
||
355 | * Returns the searchDemand |
||
356 | * |
||
357 | * @return SearchDemand |
||
358 | */ |
||
359 | 29 | public function getSearchDemand() |
|
363 | |||
364 | /** |
||
365 | * Sets the searchDemand |
||
366 | * |
||
367 | * @param SearchDemand $searchDemand |
||
368 | * @return void |
||
369 | */ |
||
370 | 4 | public function setSearchDemand($searchDemand) |
|
374 | |||
375 | } |