Nextcloud PHP API (master)

IAvatarManager

This class provides avatar functionality

Tags
since
6.0.0

Table of Contents

Methods

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 $userId) : IAvatar
Parameters
$userId : string

the Nextcloud 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

        
On this page

Search results