[FEATURE] Extbase (Persistence): Comma separated lists are now fully supported to...
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Domain / Model / FrontendUser.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 2009 Jochen Rau <jochen.rau@typoplanet.de>
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 *
17 * This script is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * This copyright notice MUST APPEAR in all copies of the script!
23 ***************************************************************/
24
25 /**
26 * A Frontend User
27 *
28 * @package Extbase
29 * @subpackage Domain
30 * @version $Id: $
31 * @scope prototype
32 * @entity
33 */
34 class Tx_Extbase_Domain_Model_FrontendUser extends Tx_Extbase_DomainObject_AbstractEntity {
35
36 /**
37 * @var string
38 */
39 protected $username;
40
41 /**
42 * @var string
43 */
44 protected $password;
45
46 /**
47 * @var Tx_Extbase_Domain_Model_FrontendUserGroup
48 */
49 protected $usergroup;
50
51 /**
52 * @var string
53 */
54 protected $name;
55
56 /**
57 * @var string
58 */
59 protected $address = '';
60
61 /**
62 * @var string
63 */
64 protected $telephone = '';
65
66 /**
67 * @var string
68 */
69 protected $fax = '';
70
71 /**
72 * @var string
73 */
74 protected $email = '';
75
76 /**
77 * @var string
78 */
79 protected $lockToDomain = '';
80
81 /**
82 * @var string
83 */
84 protected $title = '';
85
86 /**
87 * @var string
88 */
89 protected $zip = '';
90
91 /**
92 * @var string
93 */
94 protected $city = '';
95
96 /**
97 * @var string
98 */
99 protected $country = '';
100
101 /**
102 * @var string
103 */
104 protected $www = '';
105
106 /**
107 * @var string
108 */
109 protected $company = '';
110
111 /**
112 * @var string
113 */
114 protected $image = '';
115
116 /**
117 * @var DateTime
118 */
119 protected $lastlogin = '';
120
121 /**
122 * @var DateTime
123 */
124 protected $isOnline = '';
125
126 /**
127 * Constructs a new Front-End User
128 *
129 */
130 public function __construct($username, $password) {
131 $this->username = $username;
132 $this->password = $password;
133 }
134
135 /**
136 * Sets the username value
137 *
138 * @param string $username
139 * @return void
140 */
141 public function setUsername($username) {
142 $this->username = $username;
143 }
144
145 /**
146 * Returns the username value
147 *
148 * @return string
149 */
150 public function getUsername() {
151 return $this->username;
152 }
153
154 /**
155 * Sets the password value
156 *
157 * @param string $password
158 * @return void
159 */
160 public function setPassword($password) {
161 $this->password = $password;
162 }
163
164 /**
165 * Returns the password value
166 *
167 * @return string
168 */
169 public function getPassword() {
170 return $this->password;
171 }
172
173 /**
174 * Sets the usergroup value
175 *
176 * @param Tx_Extbase_Domain_Model_FrontendUserGroup $usergroup
177 * @return void
178 */
179 public function setUsergroup(Tx_Extbase_Domain_Model_FrontendUserGroup $usergroup) {
180 $this->usergroup = $usergroup;
181 }
182
183 /**
184 * Returns the usergroup value
185 *
186 * @return Tx_Extbase_Domain_Model_FrontendUserGroup
187 */
188 public function getUsergroup() {
189 return $this->usergroup;
190 }
191
192 /**
193 * Sets the name value
194 *
195 * @param string $name
196 * @return void
197 */
198 public function setName($name) {
199 $this->name = $name;
200 }
201
202 /**
203 * Returns the name value
204 *
205 * @return string
206 */
207 public function getName() {
208 return $this->name;
209 }
210
211 /**
212 * Sets the address value
213 *
214 * @param string $address
215 * @return void
216 */
217 public function setAddress($address) {
218 $this->address = $address;
219 }
220
221 /**
222 * Returns the address value
223 *
224 * @return string
225 */
226 public function getAddress() {
227 return $this->address;
228 }
229
230 /**
231 * Sets the telephone value
232 *
233 * @param string $telephone
234 * @return void
235 */
236 public function setTelephone($telephone) {
237 $this->telephone = $telephone;
238 }
239
240 /**
241 * Returns the telephone value
242 *
243 * @return string
244 */
245 public function getTelephone() {
246 return $this->telephone;
247 }
248
249 /**
250 * Sets the fax value
251 *
252 * @param string $fax
253 * @return void
254 */
255 public function setFax($fax) {
256 $this->fax = $fax;
257 }
258
259 /**
260 * Returns the fax value
261 *
262 * @return string
263 */
264 public function getFax() {
265 return $this->fax;
266 }
267
268 /**
269 * Sets the email value
270 *
271 * @param string $email
272 * @return void
273 */
274 public function setEmail($email) {
275 $this->email = $email;
276 }
277
278 /**
279 * Returns the email value
280 *
281 * @return string
282 */
283 public function getEmail() {
284 return $this->email;
285 }
286
287 /**
288 * Sets the lockToDomain value
289 *
290 * @param string $lockToDomain
291 * @return void
292 */
293 public function setLockToDomain($lockToDomain) {
294 $this->lockToDomain = $lockToDomain;
295 }
296
297 /**
298 * Returns the lockToDomain value
299 *
300 * @return string
301 */
302 public function getLockToDomain() {
303 return $this->lockToDomain;
304 }
305
306 /**
307 * Sets the title value
308 *
309 * @param string $title
310 * @return void
311 */
312 public function setTitle($title) {
313 $this->title = $title;
314 }
315
316 /**
317 * Returns the title value
318 *
319 * @return string
320 */
321 public function getTitle() {
322 return $this->title;
323 }
324
325 /**
326 * Sets the zip value
327 *
328 * @param string $zip
329 * @return void
330 */
331 public function setZip($zip) {
332 $this->zip = $zip;
333 }
334
335 /**
336 * Returns the zip value
337 *
338 * @return string
339 */
340 public function getZip() {
341 return $this->zip;
342 }
343
344 /**
345 * Sets the city value
346 *
347 * @param string $city
348 * @return void
349 */
350 public function setCity($city) {
351 $this->city = $city;
352 }
353
354 /**
355 * Returns the city value
356 *
357 * @return string
358 */
359 public function getCity() {
360 return $this->city;
361 }
362
363 /**
364 * Sets the country value
365 *
366 * @param string $country
367 * @return void
368 */
369 public function setCountry($country) {
370 $this->country = $country;
371 }
372
373 /**
374 * Returns the country value
375 *
376 * @return string
377 */
378 public function getCountry() {
379 return $this->country;
380 }
381
382 /**
383 * Sets the www value
384 *
385 * @param string $www
386 * @return void
387 */
388 public function setWww($www) {
389 $this->www = $www;
390 }
391
392 /**
393 * Returns the www value
394 *
395 * @return string
396 */
397 public function getWww() {
398 return $this->www;
399 }
400
401 /**
402 * Sets the company value
403 *
404 * @param string $company
405 * @return void
406 */
407 public function setCompany($company) {
408 $this->company = $company;
409 }
410
411 /**
412 * Returns the company value
413 *
414 * @return string
415 */
416 public function getCompany() {
417 return $this->company;
418 }
419
420 /**
421 * Sets the image value
422 *
423 * @param string $image
424 * @return void
425 */
426 public function setImage($image) {
427 $this->image = $image;
428 }
429
430 /**
431 * Returns the image value
432 *
433 * @return string
434 */
435 public function getImage() {
436 return $this->image;
437 }
438
439 /**
440 * Sets the lastLogin value
441 *
442 * @param DateTime $lastLogin
443 * @return void
444 */
445 public function setLastLogin($lastLogin) {
446 $this->lastLogin = $lastLogin;
447 }
448
449 /**
450 * Returns the lastLogin value
451 *
452 * @return DateTime
453 */
454 public function getLastLogin() {
455 return $this->lastLogin;
456 }
457
458 /**
459 * Sets the isOnline value
460 *
461 * @param DateTime $isOnline
462 * @return void
463 */
464 public function setIsOnline($isOnline) {
465 $this->isOnline = $isOnline;
466 }
467
468 /**
469 * Returns the isOnline value
470 *
471 * @return DateTime
472 */
473 public function getIsOnline() {
474 return $this->isOnline;
475 }
476
477 }
478 ?>