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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace OC;
|
|
|
|
|
|
|
|
use OCP\IAvatarManager;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This class implements methods to access Avatar functionality
|
|
|
|
*/
|
|
|
|
class AvatarManager implements IAvatarManager {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief return a user specific instance of \OCP\IAvatar
|
|
|
|
* @see \OCP\IAvatar
|
2014-05-12 00:51:30 +04:00
|
|
|
* @param string $user the ownCloud user id
|
2013-11-22 02:40:25 +04:00
|
|
|
* @return \OCP\IAvatar
|
|
|
|
*/
|
|
|
|
function getAvatar($user) {
|
|
|
|
return new \OC_Avatar($user);
|
|
|
|
}
|
|
|
|
}
|