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