avatarmanager.php 515 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * This file is licensed under the Affero General Public License version 3 or
  4. * later.
  5. * See the COPYING-README file.
  6. */
  7. namespace OC;
  8. use OCP\IAvatarManager;
  9. /*
  10. * This class implements methods to access Avatar functionality
  11. */
  12. class AvatarManager implements IAvatarManager {
  13. /**
  14. * return a user specific instance of \OCP\IAvatar
  15. * @see \OCP\IAvatar
  16. * @param string $user the ownCloud user id
  17. * @return \OCP\IAvatar
  18. */
  19. function getAvatar($user) {
  20. return new \OC_Avatar($user);
  21. }
  22. }