|
Revision 2, 0.6 kB
(checked in by fabien, 6 years ago)
|
initial import
|
- Property svn:mime-type set to
text/x-php
- Property svn:eol-style set to
native
- Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
require_once 'model/om/BaseSnippetUser.php'; |
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
class SnippetUser extends BaseSnippetUser |
|---|
| 18 |
{ |
|---|
| 19 |
public function __toString() |
|---|
| 20 |
{ |
|---|
| 21 |
if($this->getFirstName() || $this->getLastName()) |
|---|
| 22 |
{ |
|---|
| 23 |
return $this->getFirstName().' '.$this->getLastName(); |
|---|
| 24 |
} |
|---|
| 25 |
else |
|---|
| 26 |
{ |
|---|
| 27 |
return $this->getLogin(); |
|---|
| 28 |
} |
|---|
| 29 |
} |
|---|
| 30 |
} |
|---|
| 31 |
|
|---|