Blame view

sources/lib/private/avatarmanager.php 515 Bytes
31b7f2792   Kload   Upgrade to ownclo...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  <?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 {
  
  	/**
6d9380f96   Cédric Dupont   Update sources OC...
18
  	 * return a user specific instance of \OCP\IAvatar
31b7f2792   Kload   Upgrade to ownclo...
19
  	 * @see \OCP\IAvatar
6d9380f96   Cédric Dupont   Update sources OC...
20
  	 * @param string $user the ownCloud user id
31b7f2792   Kload   Upgrade to ownclo...
21
22
23
24
25
26
  	 * @return \OCP\IAvatar
  	 */
  	function getAvatar($user) {
  		return new \OC_Avatar($user);
  	}
  }