Returns a user string from the user's name and email address.
public static formatUser ( string | array $user = null, boolean $showemail = true, boolean $showname = true, boolean $html = false ) | ||
$user | string | array | A user name or a hash as returned from {@link self::getUserAttributes()}. |
$showemail | boolean | Whether to include the email address. |
$showname | boolean | Whether to include the full name. |
$html | boolean | Whether to "prettify" the result. If true, email addresses are obscured, the result is escaped for HTML output, and a group icon might be added. |