- if (Profile::isDisplayName($this->type)) {
- switch ($this->type) {
- case Profile::DN_PRIVATE:
- case Profile::DN_SHORT:
- case Profile::DN_YOURSELF:
- $type = Profile::FIRSTNAME;
- default:
- $type = Profile::LASTNAME;
- }
- } else {
- $type = $this->type;
- }
- return new UFC_Name($type, $initial, UFC_Name::PREFIX);