If the format is 'none', the full name with all parts is returned. If
the format is 'last_first' or 'first_last', only the first name and
last name are returned.
public static formatName ( Turba_Object $ob, string $name_format = null ) : string | ||
$ob | Turba_Object | The object to get a name from. |
$name_format | string | The formatting. One of 'none', 'last_first' or 'first_last'. Defaults to the user preference. |
return | string | The formatted name, either "Firstname Lastname" or "Lastname, Firstname" depending on $name_format or the user's preference. |