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