Nextcloud PHP API (stable18)

IAvatarManager

This class provides avatar functionality

Tags
since
6.0.0

Table of Contents

getAvatar()  : IAvatar
return a user specific instance of \OCP\IAvatar
getGuestAvatar()  : IAvatar
Returns a guest user avatar instance.

Methods

getAvatar()

return a user specific instance of \OCP\IAvatar

public getAvatar(string $user) : IAvatar
Parameters
$user : string

the ownCloud user id

Tags
see
IAvatar
throws
Exception

In case the username is potentially dangerous

throws
NotFoundException

In case there is no user folder yet

since
6.0.0
Return values
IAvatar

getGuestAvatar()

Returns a guest user avatar instance.

public getGuestAvatar(string $name) : IAvatar
Parameters
$name : string

The guest name, e.g. "Albert".

Tags
since
16.0.0
Return values
IAvatar

Search results