Helper for retrieving avatars from gravatar.com
Returns an avatar from gravatar’s service.
$options may include the following: - ‘img_size’ int height of img to return - ‘default_img’ string img to return if email address has not found - ‘rating’ string rating parameter for avatar - ‘secure’ bool load from the SSL or Non-SSL location
Parameters: |
|
---|---|
Return type: | Gravatar |
Set img size in pixels
Parameters: | int – Size of img must be between 1 and 512 |
---|---|
Return type: | Gravatar |
Set default img
Can be either an absolute URL to an image, or one of the DEFAULT_* constants
Parameters: | string – |
---|---|
Return type: | Gravatar |
Set rating value
Must be one of the RATING_* constants
Parameters: | string – Value for rating. Allowed values are: g, px, r,x |
---|---|
Return type: | Gravatar |
Throws : | ExceptionDomainException |
Load from an SSL or No-SSL location?
Parameters: | bool – |
---|---|
Return type: | Gravatar |
Get attribs of image
Warning! If you set src attrib, you get it, but this value will be overwritten in protected method setSrcAttribForImg(). And finally your get other src value!
Return type: | array |
---|
Set attribs for image tag
Warning! You shouldn’t set src attrib for image tag. This attrib is overwritten in protected method setSrcAttribForImg(). This method(_setSrcAttribForImg) is called in public method getImgTag().
Parameters: | array – |
---|---|
Return type: | Gravatar |
Get avatar url (including size, rating and default image options)
Return type: | string |
---|
URL to gravatar service
Secure URL to gravatar service
Gravatar rating
Default gravatar image value constants