__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
$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 |
stringnullEmail address.
nullarrayOptions
arrayAttributes for image tag (title, alt etc.)
__toString() : string
stringgetAttribs() : 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!
arraygetClosingBracket() : string
| inherited_from | \Zend\View\Helper\AbstractHtmlElement::getClosingBracket() |
|---|
stringgetDefaultImg() : string
stringgetEmail() : string
stringgetImgSize() : int
intThe img sizegetImgTag() : string
stringgetRating() : string
stringgetSecure() : bool
boolgetView() : 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. |
|---|
stringValue 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
stringgetGravatarUrl() : string
stringURLhtmlAttribs(array $attribs) : string
| access | public |
|---|---|
| inherited_from | \Zend\View\Helper\AbstractHtmlElement::htmlAttribs() |
arrayFrom this array, each key-value pair is converted to an attribute name and value.
stringThe XHTML for the attributes.isXhtml() : bool
| inherited_from | \Zend\View\Helper\AbstractHtmlElement::isXhtml() |
|---|
boolnormalizeId(string $value) : string
| inherited_from | \Zend\View\Helper\AbstractHtmlElement::normalizeId() |
|---|
string
stringsetSrcAttribForImg() : void
You shouldn't set a 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
$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