1a0f9c375b
* Original avatarcontroller migrated to the appframework * Added DataDisplayResponse that show data inline in the browser (used to retrun the image) * Removed some unneeded code * Added unit tests for the avatarcontroller
27 lines
527 B
PHP
27 lines
527 B
PHP
<?php
|
|
/**
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
* later.
|
|
* See the COPYING-README file.
|
|
*/
|
|
|
|
namespace OC;
|
|
|
|
use OCP\IAvatarManager;
|
|
use OC\Avatar;
|
|
|
|
/**
|
|
* This class implements methods to access Avatar functionality
|
|
*/
|
|
class AvatarManager implements IAvatarManager {
|
|
|
|
/**
|
|
* return a user specific instance of \OCP\IAvatar
|
|
* @see \OCP\IAvatar
|
|
* @param string $user the ownCloud user id
|
|
* @return \OCP\IAvatar
|
|
*/
|
|
function getAvatar($user) {
|
|
return new Avatar($user);
|
|
}
|
|
}
|