Returns the currently logged in user, if there is one.
public getAuth ( string $format = null ) : mixed | ||
$format | string | The return format, defaults to the unique Horde ID. Alternative formats: - bare: (string) Horde ID without any domain information. EXAMPLE: foo@example.com would be returned as 'foo'. - domain: (string) Domain of the Horde ID. EXAMPLE: foo@example.com would be returned as 'example.com'. - original: (string) The username used to originally login to Horde. |
return | mixed | The user ID or false if no user is logged in. |