XOOPS  2.6.0
AvatarsProvider Class Reference
Inheritance diagram for AvatarsProvider:
Inheritance graph

Public Member Functions

 __construct ()
 
 getAvatarEditUrl ($response,\XoopsUser $userinfo)
 
 getAvatarUrl ($response, $userinfo)
 
 getDescription ()
 
 getName ()
 
- Public Member Functions inherited from Xoops\Core\Service\AbstractContract
 getDescription ()
 
 getMode ()
 
 getName ()
 
 getPriority ()
 
 setPriority ($priority)
 

Protected Attributes

 $xoops_upload_url
 
 $xoops_url
 
- Protected Attributes inherited from Xoops\Core\Service\AbstractContract
 $priority = Manager::PRIORITY_MEDIUM
 

Private Member Functions

 getUserById ($uid)
 

Additional Inherited Members

- Public Attributes inherited from Xoops\Core\Service\Contract\AvatarInterface
const MODE = \Xoops\Core\Service\Manager::MODE_EXCLUSIVE
 

Detailed Description

Definition at line 26 of file AvatarsProvider.php.

Constructor & Destructor Documentation

AvatarsProvider::__construct ( )

Definition at line 31 of file AvatarsProvider.php.

References XoopsBaseConfig\get().

Here is the call graph for this function:

Member Function Documentation

AvatarsProvider::getAvatarEditUrl (   $response,
\XoopsUser  $userinfo 
)

getAvatarEditUrl - given user info return absolute URL to edit avatar data

Parameters
Response$responseobject
\XoopsUser$userinfoXoopsUser object for user
Returns
void - response->value set to absolute URL to editing function for avatar data

Implements Xoops\Core\Service\Contract\AvatarInterface.

Definition at line 121 of file AvatarsProvider.php.

References $link, and $response.

AvatarsProvider::getAvatarUrl (   $response,
  $userinfo 
)

getAvatarUrl - given user info return absolute URL to avatar image

Parameters
Response$responseobject
mixed$userinfoXoopsUser object for user or array of user info, 'uid', 'uname' and 'email' required
Returns
void - response->value set to absolute URL to avatar image

Implements Xoops\Core\Service\Contract\AvatarInterface.

Definition at line 80 of file AvatarsProvider.php.

References $response, $user, and getUserById().

Here is the call graph for this function:

AvatarsProvider::getDescription ( )

getDescription - get human readable description of the service provider

Returns
string

Definition at line 53 of file AvatarsProvider.php.

AvatarsProvider::getName ( )

getName - get a short name for this service provider. This should be unique within the scope of the named service, so using module dirname is suggested.

Returns
string - a unique name for the service provider

Definition at line 43 of file AvatarsProvider.php.

AvatarsProvider::getUserById (   $uid)
private

getUserById - get a user object from a user id

Parameters
int$uida user id
Returns
object|null

Definition at line 65 of file AvatarsProvider.php.

References $uid, $user, and Xoops\getInstance().

Referenced by getAvatarUrl().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

AvatarsProvider::$xoops_upload_url
protected

Definition at line 29 of file AvatarsProvider.php.

AvatarsProvider::$xoops_url
protected

Definition at line 28 of file AvatarsProvider.php.


The documentation for this class was generated from the following file: