diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-11-21 23:40:25 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-11-21 23:40:25 +0100 |
commit | 00071401d7c16e700becf5447bebdc70441736ea (patch) | |
tree | e6d4617ab0d4a382e352ef0788869d7eaf3baa95 /lib/private | |
parent | bcd776b0c0480291c793c89ba36477163c9e4249 (diff) | |
download | nextcloud-server-00071401d7c16e700becf5447bebdc70441736ea.tar.gz nextcloud-server-00071401d7c16e700becf5447bebdc70441736ea.zip |
Round out Avatar Public API
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/avatar.php | 2 | ||||
-rw-r--r-- | lib/private/avatarmanager.php | 26 |
2 files changed, 27 insertions, 1 deletions
diff --git a/lib/private/avatar.php b/lib/private/avatar.php index e9b02a7d34c..e82e517b091 100644 --- a/lib/private/avatar.php +++ b/lib/private/avatar.php @@ -10,7 +10,7 @@ * This class gets and sets users avatars. */ -class OC_Avatar { +class OC_Avatar implements \OCP\IAvatar { private $view; diff --git a/lib/private/avatarmanager.php b/lib/private/avatarmanager.php new file mode 100644 index 00000000000..3ca46868ea6 --- /dev/null +++ b/lib/private/avatarmanager.php @@ -0,0 +1,26 @@ +<?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 + * @param $user string the ownCloud user id + * @return \OCP\IAvatar + */ + function getAvatar($user) { + return new \OC_Avatar($user); + } +} |