TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
typo3
sysext
extbase
Classes
Domain
Model
FrontendUser.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Extbase\Domain\Model;
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
22
class
FrontendUser
extends
\TYPO3\CMS\Extbase\DomainObject\AbstractEntity
23
{
27
protected
$username
=
''
;
28
32
protected
$password
=
''
;
33
37
protected
$usergroup
;
38
42
protected
$name
=
''
;
43
47
protected
$firstName
=
''
;
48
52
protected
$middleName
=
''
;
53
57
protected
$lastName
=
''
;
58
62
protected
$address
=
''
;
63
67
protected
$telephone
=
''
;
68
72
protected
$fax
=
''
;
73
77
protected
$email
=
''
;
78
82
protected
$lockToDomain
=
''
;
83
87
protected
$title
=
''
;
88
92
protected
$zip
=
''
;
93
97
protected
$city
=
''
;
98
102
protected
$country
=
''
;
103
107
protected
$www
=
''
;
108
112
protected
$company
=
''
;
113
117
protected
$image
=
''
;
118
122
protected
$lastlogin
= null;
123
131
public
function
__construct
(
$username
=
''
,
$password
=
''
)
132
{
133
$this->username =
$username
;
134
$this->password =
$password
;
135
$this->usergroup = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
136
}
137
145
public
function
setUsername
(
$username
)
146
{
147
$this->username =
$username
;
148
}
149
156
public
function
getUsername
()
157
{
158
return
$this->username
;
159
}
160
168
public
function
setPassword
(
$password
)
169
{
170
$this->password =
$password
;
171
}
172
179
public
function
getPassword
()
180
{
181
return
$this->password
;
182
}
183
192
public
function
setUsergroup
(\TYPO3\CMS\Extbase\Persistence\ObjectStorage
$usergroup
)
193
{
194
$this->usergroup =
$usergroup
;
195
}
196
204
public
function
addUsergroup
(\TYPO3\CMS\Extbase\Domain\Model\
FrontendUserGroup
$usergroup
)
205
{
206
$this->usergroup->attach($usergroup);
207
}
208
216
public
function
removeUsergroup
(\TYPO3\CMS\Extbase\Domain\Model\
FrontendUserGroup
$usergroup
)
217
{
218
$this->usergroup->detach($usergroup);
219
}
220
228
public
function
getUsergroup
()
229
{
230
return
$this->usergroup
;
231
}
232
240
public
function
setName
(
$name
)
241
{
242
$this->name =
$name
;
243
}
244
251
public
function
getName
()
252
{
253
return
$this->name
;
254
}
255
263
public
function
setFirstName
(
$firstName
)
264
{
265
$this->firstName =
$firstName
;
266
}
267
274
public
function
getFirstName
()
275
{
276
return
$this->firstName
;
277
}
278
286
public
function
setMiddleName
(
$middleName
)
287
{
288
$this->middleName =
$middleName
;
289
}
290
297
public
function
getMiddleName
()
298
{
299
return
$this->middleName
;
300
}
301
309
public
function
setLastName
(
$lastName
)
310
{
311
$this->lastName =
$lastName
;
312
}
313
320
public
function
getLastName
()
321
{
322
return
$this->lastName
;
323
}
324
332
public
function
setAddress
(
$address
)
333
{
334
$this->address =
$address
;
335
}
336
343
public
function
getAddress
()
344
{
345
return
$this->address
;
346
}
347
355
public
function
setTelephone
(
$telephone
)
356
{
357
$this->telephone =
$telephone
;
358
}
359
366
public
function
getTelephone
()
367
{
368
return
$this->telephone
;
369
}
370
378
public
function
setFax
(
$fax
)
379
{
380
$this->fax =
$fax
;
381
}
382
389
public
function
getFax
()
390
{
391
return
$this->fax
;
392
}
393
401
public
function
setEmail
(
$email
)
402
{
403
$this->email =
$email
;
404
}
405
412
public
function
getEmail
()
413
{
414
return
$this->email
;
415
}
416
424
public
function
setLockToDomain
(
$lockToDomain
)
425
{
426
$this->lockToDomain =
$lockToDomain
;
427
}
428
435
public
function
getLockToDomain
()
436
{
437
return
$this->lockToDomain
;
438
}
439
447
public
function
setTitle
(
$title
)
448
{
449
$this->title =
$title
;
450
}
451
458
public
function
getTitle
()
459
{
460
return
$this->title
;
461
}
462
470
public
function
setZip
(
$zip
)
471
{
472
$this->zip =
$zip
;
473
}
474
481
public
function
getZip
()
482
{
483
return
$this->zip
;
484
}
485
493
public
function
setCity
(
$city
)
494
{
495
$this->city =
$city
;
496
}
497
504
public
function
getCity
()
505
{
506
return
$this->city
;
507
}
508
516
public
function
setCountry
(
$country
)
517
{
518
$this->country =
$country
;
519
}
520
527
public
function
getCountry
()
528
{
529
return
$this->country
;
530
}
531
539
public
function
setWww
(
$www
)
540
{
541
$this->www =
$www
;
542
}
543
550
public
function
getWww
()
551
{
552
return
$this->www
;
553
}
554
562
public
function
setCompany
(
$company
)
563
{
564
$this->company =
$company
;
565
}
566
573
public
function
getCompany
()
574
{
575
return
$this->company
;
576
}
577
585
public
function
setImage
(
$image
)
586
{
587
$this->image =
$image
;
588
}
589
596
public
function
getImage
()
597
{
598
return
$this->image
;
599
}
600
608
public
function
setLastlogin
(\DateTime
$lastlogin
)
609
{
610
$this->lastlogin =
$lastlogin
;
611
}
612
619
public
function
getLastlogin
()
620
{
621
return
$this->lastlogin
;
622
}
623
}
Generated on Wed Nov 11 2015 01:51:56 for TYPO3 by
1.8.3