Fully Qualified Name: | Zend\View\Helper\Gravatar |
Extends: | AbstractHtmlElement |
Helper for retrieving avatars from gravatar.com
Name | Description | Defined By |
---|---|---|
__invoke() | Returns an avatar from gravatar's service. | Gravatar |
__toString() | Return valid image tag | Gravatar |
getAttribs() | Get attribs of image | Gravatar |
getAttributes() | Get attributes of image | Gravatar |
getClosingBracket() | Get the tag closing bracket | AbstractHtmlElement |
getDefaultImg() | Get default img | Gravatar |
getEmail() | Get email address | Gravatar |
getImgSize() | Get img size | Gravatar |
getImgTag() | Return valid image tag | Gravatar |
getRating() | Get rating value | Gravatar |
getSecure() | Get an SSL or a No-SSL location | Gravatar |
getView() | Get the view object | AbstractHelper |
setAttribs() | Set attribs for image tag | Gravatar |
setAttributes() | Set attributes for image tag | Gravatar |
setDefaultImg() | Set default img | Gravatar |
setEmail() | Set email address | Gravatar |
setImgSize() | Set img size in pixels | Gravatar |
setOptions() | Configure state | Gravatar |
setRating() | Set rating value | Gravatar |
setSecure() | Load from an SSL or No-SSL location? | Gravatar |
setView() | Set the View object | AbstractHelper |
Returns an avatar from gravatar's service.
$options may include the following:
Parameter Name | Type | Description |
---|---|---|
string|null | ||
$options | null|array | Options |
$attributes | array | Attributes |
Returns: \Gravatar
Return valid image tag
Returns: string
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!
Returns: array
Get attributes of image
Warning! If you set src attribute, you get it, but this value will be overwritten in protected method setSrcAttribForImg(). And finally your get other src value!
Returns: array
Get the tag closing bracket
Returns: string
Get default img
Returns: string
Get email address
Returns: string
Get img size
Returns: int The img size
Return valid image tag
Returns: string
Get rating value
Returns: string
Get an SSL or a No-SSL location
Returns: bool
Get the view object
Returns: null|\Renderer
Set attribs for image tag
Parameter Name | Type | Description |
---|---|---|
$attribs | array |
Returns: \Gravatar
Set attributes for image tag
Warning! You shouldn't set src attribute for image tag. This attribute is overwritten in protected method setSrcAttribForImg(). This method(_setSrcAttribForImg) is called in public method getImgTag().
Parameter Name | Type | Description |
---|---|---|
$attributes | array |
Returns: \Gravatar
Set default img
Can be either an absolute URL to an image, or one of the DEFAULT_* constants
Parameter Name | Type | Description |
---|---|---|
$defaultImg | string |
Returns: \Gravatar
Set email address
Parameter Name | Type | Description |
---|---|---|
string |
Returns: \Gravatar
Set img size in pixels
Parameter Name | Type | Description |
---|---|---|
$imgSize | int | Size |
Returns: \Gravatar
Configure state
Parameter Name | Type | Description |
---|---|---|
$options | array |
Returns: \Gravatar
Set rating value
Must be one of the RATING_* constants
Parameter Name | Type | Description |
---|---|---|
$rating | string | Value |
Returns: \Gravatar
Load from an SSL or No-SSL location?
Parameter Name | Type | Description |
---|---|---|
$flag | bool |
Returns: \Gravatar
Set the View object
Parameter Name | Type | Description |
---|---|---|
$view | \Renderer |
Returns: \AbstractHelper