summaryrefslogtreecommitdiffstats
path: root/lib/private/avatarmanager.php
blob: 8dc20a5240b932623bae29fa6b270c09f88b6e7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?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);
	}
}