9dae178547acd50a221f41df6089db45e561a59a
[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\Model
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 * @api
130 */
131 public function __construct($username = '', $password = '') {
132 $this->username = $username;
133 $this->password = $password;
134 }
135
136 /**
137 * Sets the username value
138 *
139 * @param string $username
140 * @return void
141 * @api
142 */
143 public function setUsername($username) {
144 $this->username = $username;
145 }
146
147 /**
148 * Returns the username value
149 *
150 * @return string
151 * @api
152 */
153 public function getUsername() {
154 return $this->username;
155 }
156
157 /**
158 * Sets the password value
159 *
160 * @param string $password
161 * @return void
162 * @api
163 */
164 public function setPassword($password) {
165 $this->password = $password;
166 }
167
168 /**
169 * Returns the password value
170 *
171 * @return string
172 * @api
173 */
174 public function getPassword() {
175 return $this->password;
176 }
177
178 /**
179 * Sets the usergroup value
180 *
181 * @param Tx_Extbase_Domain_Model_FrontendUserGroup $usergroup
182 * @return void
183 * @api
184 */
185 public function setUsergroup(Tx_Extbase_Domain_Model_FrontendUserGroup $usergroup) {
186 $this->usergroup = $usergroup;
187 }
188
189 /**
190 * Returns the usergroup value
191 *
192 * @return Tx_Extbase_Domain_Model_FrontendUserGroup
193 * @api
194 */
195 public function getUsergroup() {
196 return $this->usergroup;
197 }
198
199 /**
200 * Sets the name value
201 *
202 * @param string $name
203 * @return void
204 * @api
205 */
206 public function setName($name) {
207 $this->name = $name;
208 }
209
210 /**
211 * Returns the name value
212 *
213 * @return string
214 * @api
215 */
216 public function getName() {
217 return $this->name;
218 }
219
220 /**
221 * Sets the address value
222 *
223 * @param string $address
224 * @return void
225 * @api
226 */
227 public function setAddress($address) {
228 $this->address = $address;
229 }
230
231 /**
232 * Returns the address value
233 *
234 * @return string
235 * @api
236 */
237 public function getAddress() {
238 return $this->address;
239 }
240
241 /**
242 * Sets the telephone value
243 *
244 * @param string $telephone
245 * @return void
246 * @api
247 */
248 public function setTelephone($telephone) {
249 $this->telephone = $telephone;
250 }
251
252 /**
253 * Returns the telephone value
254 *
255 * @return string
256 * @api
257 */
258 public function getTelephone() {
259 return $this->telephone;
260 }
261
262 /**
263 * Sets the fax value
264 *
265 * @param string $fax
266 * @return void
267 * @api
268 */
269 public function setFax($fax) {
270 $this->fax = $fax;
271 }
272
273 /**
274 * Returns the fax value
275 *
276 * @return string
277 * @api
278 */
279 public function getFax() {
280 return $this->fax;
281 }
282
283 /**
284 * Sets the email value
285 *
286 * @param string $email
287 * @return void
288 * @api
289 */
290 public function setEmail($email) {
291 $this->email = $email;
292 }
293
294 /**
295 * Returns the email value
296 *
297 * @return string
298 * @api
299 */
300 public function getEmail() {
301 return $this->email;
302 }
303
304 /**
305 * Sets the lockToDomain value
306 *
307 * @param string $lockToDomain
308 * @return void
309 * @api
310 */
311 public function setLockToDomain($lockToDomain) {
312 $this->lockToDomain = $lockToDomain;
313 }
314
315 /**
316 * Returns the lockToDomain value
317 *
318 * @return string
319 * @api
320 */
321 public function getLockToDomain() {
322 return $this->lockToDomain;
323 }
324
325 /**
326 * Sets the title value
327 *
328 * @param string $title
329 * @return void
330 * @api
331 */
332 public function setTitle($title) {
333 $this->title = $title;
334 }
335
336 /**
337 * Returns the title value
338 *
339 * @return string
340 * @api
341 */
342 public function getTitle() {
343 return $this->title;
344 }
345
346 /**
347 * Sets the zip value
348 *
349 * @param string $zip
350 * @return void
351 * @api
352 */
353 public function setZip($zip) {
354 $this->zip = $zip;
355 }
356
357 /**
358 * Returns the zip value
359 *
360 * @return string
361 * @api
362 */
363 public function getZip() {
364 return $this->zip;
365 }
366
367 /**
368 * Sets the city value
369 *
370 * @param string $city
371 * @return void
372 * @api
373 */
374 public function setCity($city) {
375 $this->city = $city;
376 }
377
378 /**
379 * Returns the city value
380 *
381 * @return string
382 * @api
383 */
384 public function getCity() {
385 return $this->city;
386 }
387
388 /**
389 * Sets the country value
390 *
391 * @param string $country
392 * @return void
393 * @api
394 */
395 public function setCountry($country) {
396 $this->country = $country;
397 }
398
399 /**
400 * Returns the country value
401 *
402 * @return string
403 * @api
404 */
405 public function getCountry() {
406 return $this->country;
407 }
408
409 /**
410 * Sets the www value
411 *
412 * @param string $www
413 * @return void
414 * @api
415 */
416 public function setWww($www) {
417 $this->www = $www;
418 }
419
420 /**
421 * Returns the www value
422 *
423 * @return string
424 * @api
425 */
426 public function getWww() {
427 return $this->www;
428 }
429
430 /**
431 * Sets the company value
432 *
433 * @param string $company
434 * @return void
435 * @api
436 */
437 public function setCompany($company) {
438 $this->company = $company;
439 }
440
441 /**
442 * Returns the company value
443 *
444 * @return string
445 * @api
446 */
447 public function getCompany() {
448 return $this->company;
449 }
450
451 /**
452 * Sets the image value
453 *
454 * @param string $image
455 * @return void
456 * @api
457 */
458 public function setImage($image) {
459 $this->image = $image;
460 }
461
462 /**
463 * Returns the image value
464 *
465 * @return string
466 * @api
467 */
468 public function getImage() {
469 return $this->image;
470 }
471
472 /**
473 * Sets the lastLogin value
474 *
475 * @param DateTime $lastLogin
476 * @return void
477 * @api
478 */
479 public function setLastLogin($lastLogin) {
480 $this->lastLogin = $lastLogin;
481 }
482
483 /**
484 * Returns the lastLogin value
485 *
486 * @return DateTime
487 * @api
488 */
489 public function getLastLogin() {
490 return $this->lastLogin;
491 }
492
493 /**
494 * Sets the isOnline value
495 *
496 * @param DateTime $isOnline
497 * @return void
498 * @api
499 */
500 public function setIsOnline($isOnline) {
501 $this->isOnline = $isOnline;
502 }
503
504 /**
505 * Returns the isOnline value
506 *
507 * @return DateTime
508 * @api
509 */
510 public function getIsOnline() {
511 return $this->isOnline;
512 }
513
514 }
515 ?>