GUI for Participant management
This commit is contained in:
@@ -140,11 +140,18 @@ class EventParticipant extends InstancedModel
|
||||
return sprintf('%1$s %2$s', $this->firstname, $this->lastname);
|
||||
}
|
||||
|
||||
public function getFullname() : string {
|
||||
return sprintf('%1$1s %2$s %3$s',
|
||||
public function getFullName() : string {
|
||||
if ($this->nickname === null) {
|
||||
return sprintf('%1$s %2$s', $this->firstname, $this->lastname)
|
||||
|>trim(...);
|
||||
}
|
||||
|
||||
|
||||
return sprintf('%1$1s%2$s(%3$s %4$s)',
|
||||
$this->nickname,
|
||||
'<br />',
|
||||
$this->firstname,
|
||||
$this->lastname,
|
||||
$this->nickname !== null ? '(' . $this->nickname . ')' : '',
|
||||
)
|
||||
|>trim(...);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user