__invoke()
__toString()
getAttribs()
getClosingBracket()
getDefaultImg()
getEmail()
getImgSize()
getImgTag()
getRating()
getSecure()
getView()
setAttribs()
setDefaultImg()
setEmail()
setImgSize()
setOptions()
setRating()
setSecure()
setView()
getAvatarUrl()
getGravatarUrl()
htmlAttribs()
isXhtml()
normalizeId()
setSrcAttribForImg()
$attribs
$closingBracket
$emailIsHashed
$options
$view
DEFAULT_404
DEFAULT_IDENTICON
DEFAULT_MM
DEFAULT_MONSTERID
DEFAULT_WAVATAR
EOL
GRAVATAR_URL
GRAVATAR_URL_SECURE
RATING_G
RATING_PG
RATING_R
RATING_X
Helper for retrieving avatars from gravatar.com
__invoke(string | null $email, null | array $options, array $attribs) : \Zend\View\Helper\Gravatar
$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
see | \Zend\View\Helper\http://pl.gravatar.com/site/implement/url |
---|---|
see | \Zend\View\Helper\http://pl.gravatar.com/site/implement/url |
stringnull
Email address.
nullarray
Options
array
Attributes for image tag (title, alt etc.)
__toString() : string
string
getAttribs() : array
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!
array
getClosingBracket() : string
inherited_from | \Zend\View\Helper\AbstractHtmlElement::getClosingBracket() |
---|
string
getDefaultImg() : string
string
getEmail() : string
string
getImgSize() : int
int
The img sizegetImgTag() : string
string
getRating() : string
string
getSecure() : bool
bool
getView() : null | \Zend\View\Renderer\RendererInterface
inherited_from | \Zend\View\Helper\AbstractHelper::getView() |
---|---|
inherited_from | \Zend\View\Helper\AbstractHtmlElement::getView() |
setAttribs(array $attribs) : \Zend\View\Helper\Gravatar
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().
array
setDefaultImg(string $defaultImg) : \Zend\View\Helper\Gravatar
Can be either an absolute URL to an image, or one of the DEFAULT_* constants
link | More information about default image. |
---|
string
setRating(string $rating) : \Zend\View\Helper\Gravatar
Must be one of the RATING_* constants
link | More information about rating. |
---|
string
Value for rating. Allowed values are: g, px, r,x
\Zend\View\Exception\DomainException |
---|
setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\View\Helper\AbstractHelper
inherited_from | \Zend\View\Helper\AbstractHelper::setView() |
---|---|
inherited_from | \Zend\View\Helper\AbstractHtmlElement::setView() |
getAvatarUrl() : string
string
getGravatarUrl() : string
string
URLhtmlAttribs(array $attribs) : string
access | public |
---|---|
inherited_from | \Zend\View\Helper\AbstractHtmlElement::htmlAttribs() |
array
From this array, each key-value pair is converted to an attribute name and value.
string
The XHTML for the attributes.isXhtml() : bool
inherited_from | \Zend\View\Helper\AbstractHtmlElement::isXhtml() |
---|
bool
normalizeId(string $value) : string
inherited_from | \Zend\View\Helper\AbstractHtmlElement::normalizeId() |
---|
string
string
setSrcAttribForImg() : void
You shouldn't set an own url value! It sets value, uses protected method getAvatarUrl.
If already exists, it will be overwritten.
$attribs : array
$closingBracket : string
inherited_from | \Zend\View\Helper\AbstractHtmlElement::$$closingBracket |
---|
$email : string
$emailIsHashed : bool
$view : \Zend\View\Renderer\RendererInterface
inherited_from | \Zend\View\Helper\AbstractHelper::$$view |
---|---|
inherited_from | \Zend\View\Helper\AbstractHtmlElement::$$view |
DEFAULT_404
DEFAULT_IDENTICON
DEFAULT_MM
DEFAULT_MONSTERID
DEFAULT_WAVATAR
EOL
inherited_from | \Zend\View\Helper\AbstractHtmlElement::EOL |
---|
GRAVATAR_URL
GRAVATAR_URL_SECURE
RATING_G
RATING_PG
RATING_R
RATING_X