| @@ 90-107 (lines=18) @@ | ||
| 87 | ]; |
|
| 88 | } |
|
| 89 | ||
| 90 | public function name() |
|
| 91 | { |
|
| 92 | if ($this->first_name . $this->last_name . $this->middle_name) { |
|
| 93 | $name = ''; |
|
| 94 | if ($this->first_name) { |
|
| 95 | $name.=$this->first_name; |
|
| 96 | } |
|
| 97 | if ($this->middle_name) { |
|
| 98 | $name.=($name ? ' ' : '') . $this->middle_name; |
|
| 99 | } |
|
| 100 | if ($this->last_name) { |
|
| 101 | $name.=($name ? ' ' : '') . $this->last_name; |
|
| 102 | } |
|
| 103 | return $name; |
|
| 104 | } else { |
|
| 105 | return $this->user_id; |
|
| 106 | } |
|
| 107 | } |
|
| 108 | ||
| 109 | } |
|
| 110 | ||
| @@ 47-64 (lines=18) @@ | ||
| 44 | ]; |
|
| 45 | } |
|
| 46 | ||
| 47 | public function name() |
|
| 48 | { |
|
| 49 | if ($this->first_name . $this->last_name . $this->middle_name) { |
|
| 50 | $name = ''; |
|
| 51 | if ($this->first_name) { |
|
| 52 | $name.=$this->first_name; |
|
| 53 | } |
|
| 54 | if ($this->middle_name) { |
|
| 55 | $name.=($name ? ' ' : '') . $this->middle_name; |
|
| 56 | } |
|
| 57 | if ($this->last_name) { |
|
| 58 | $name.=($name ? ' ' : '') . $this->last_name; |
|
| 59 | } |
|
| 60 | return $name; |
|
| 61 | } else { |
|
| 62 | return $this->user_id; |
|
| 63 | } |
|
| 64 | } |
|
| 65 | ||
| 66 | } |
|
| 67 | ||