Class flGravatar
flGravatar Class
Class to look up a gravatar and either generate an image link to it or
collect the profile information.
Package: fusionLib
Copyright:
Copyright (c) 2011 - 2013 fusionLib. All rights reserved.
Located at system/libs/Gravatar/flGravatar.php
Methods summary
protected
string
|
#
hash( string $email )
Caclulate the hash of the gravatar from the email address.
Caclulate the hash of the gravatar from the email address.
Parameters
- $email
- The email address to get the gravatar for.
Returns
string the hash value for the gravatar.
|
public
flGravatar
|
#
setImageSize( integer $size )
Set the image size required when getting a gravatar image.
Set the image size required when getting a gravatar image.
Parameters
- $size
- The size in pixels between 1 and 512.
Returns
|
public
flGravatar
|
#
setRating( string $rating )
Set the the rating level to accept.
Set the the rating level to accept.
Parameters
- $rating
- The max rating level, 'g', 'pg', 'r' or 'x'
Returns
|
public
string
|
#
getImage( string $email )
Get the URI to the gravatar image.
Get the URI to the gravatar image.
Parameters
- $email
- The email to get the gravatar for.
Returns
string The garvatar URI.
|
public
string
|
#
getProfile( string $email )
Get the profile data from gravatar.
Get the profile data from gravatar.
Parameters
- $email
- The array holding the profile data.
Returns
string The array holding the profile data or false if no data available.
|