user displayname
This commit is contained in:
parent
05fd209204
commit
777fa8ffad
@ -12,7 +12,7 @@ class MultipleReference {
|
|||||||
private string $thisProperty;
|
private string $thisProperty;
|
||||||
private string $relProperty;
|
private string $relProperty;
|
||||||
|
|
||||||
public function __construct(string $className, string $thisProperty, string $relProperty) {
|
public function __construct(string $className, string $thisProperty, string $relProperty = "id") {
|
||||||
$this->className = $className;
|
$this->className = $className;
|
||||||
$this->thisProperty = $thisProperty;
|
$this->thisProperty = $thisProperty;
|
||||||
$this->relProperty = $relProperty;
|
$this->relProperty = $relProperty;
|
||||||
|
@ -137,4 +137,8 @@ class User extends DatabaseEntity {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getDisplayName(): string {
|
||||||
|
return !empty($this->fullName) ? $this->fullName : $this->name;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user