IAvatarManager

interface OCP\IAvatarManager
This class provides avatar functionality
Implemented by:OC\Avatar\AvatarManager
Source:lib/public/IAvatarManager.php#35

Methods

public OCP\IAvatarManager::getAvatar($user)
return a user specific instance of \OCP\IAvatar
Source:

lib/public/IAvatarManager.php#46

Parameters:
  • $user (string) the ownCloud user id
See:

\OCP\IAvatar

Returns:

\OCP\IAvatar

Throws:

\Exception In case the username is potentially dangerous

Throws:

\OCP\Files\NotFoundException In case there is no user folder yet

Throws:

\Exception In case the username is potentially dangerous

Throws:

\OCP\Files\NotFoundException In case there is no user folder yet

Since:

6.0.0

public OCP\IAvatarManager::getGuestAvatar($name)
Returns a guest user avatar instance.
Source:

lib/public/IAvatarManager.php#55

Parameters:
  • $name (string) The guest name, e.g. “Albert”.
Returns:

\OCP\IAvatar

Since:

16.0.0