nextcloud/lib/private/avatarmanager.php

28 lines
527 B
PHP
Raw Normal View History

2013-11-22 02:40:25 +04:00
<?php
/**
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
2013-11-22 02:40:25 +04:00
*/
2013-11-22 02:40:25 +04:00
namespace OC;
use OCP\IAvatarManager;
use OC\Avatar;
2013-11-22 02:40:25 +04:00
/**
2013-11-22 02:40:25 +04:00
* This class implements methods to access Avatar functionality
*/
class AvatarManager implements IAvatarManager {
/**
* return a user specific instance of \OCP\IAvatar
2013-11-22 02:40:25 +04:00
* @see \OCP\IAvatar
* @param string $user the ownCloud user id
2013-11-22 02:40:25 +04:00
* @return \OCP\IAvatar
*/
function getAvatar($user) {
return new Avatar($user);
2013-11-22 02:40:25 +04:00
}
}