Class \Prado\Web\UI\WebControls\TGravatar
TGravatar extends TImage and outputs a gravatar ImageUrl based upon an email address, size, rating, and default style of the gravatar.
setDefaultImageStyle allows for various styles of gravatar: • mp - Mystery Person • identicon - identicon style • monsterid - monster style • wavatar - wavatar style • retro - Retro style • robohash - Robohash style • blank - a blank space • 404 - not found page error • _url - provide your own default URL (to be url encoded for you)
A rating of the gravatar can be provided as g, pg, r, and x.
The size must be between 1 and 512, inclusive.
TParameterizeBehavior can be attached to TGravatar to give default values for various properties like DefaultImageStyle and Rating. PRADO Skins can also be used to provide default values.
See https://gravatar.com for more information.
Class hierarchy
- \Prado\Web\UI\WebControls\TGravatar
- \Prado\Web\UI\WebControls\TImage implements IDataRenderer
- \Prado\Web\UI\WebControls\TWebControl implements IStyleable
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 4.2.0
public
|
|
public
|
|
public
|
|
public
|
|
public
|
getSize() : null|int
When the Size is not set or is null, the default size of a gravatar
from the gravatar website is 80.
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
public
mixed
|
HTTP_URL
|
'http://www.gravatar.com/avatar/'
|
public
mixed
|
HTTPS_URL
|
'https://secure.gravatar.com/avatar/'
|