Helper for retrieving avatars from gravatar.com
package | Zend_View |
---|---|
subpackage | Helper |
copyright | Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
link | http://pl.gravatar.com/site/implement/url |
inherited_from | \Zend_View_Helper_HtmlElement |
__toString() : string
string
direct() : void
inherited_from | \Zend_View_Helper_Interface::direct() |
---|
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
string
getDefaultImg() : string
string
getEmail() : string
string
getImgSize() : integer
integer
The img sizegetImgTag() : string
string
getRating() : string
string
getSecure() : boolean
boolean
gravatar(string|null $email= ""
, null|array $options= array()
, array $attribs= array()
) : \Zend_View_Helper_Gravatar
$options may include the following:
see | |
---|---|
see | More information about gravatar's service. |
string
null
Email adress.
null
array
Options
array
Attributes for image tag (title, alt etc.)
\Zend_View_Helper_Gravatar
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
\Zend_View_Helper_Gravatar
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
\Zend_View_Helper_Gravatar
setEmail(string $email) : \Zend_View_Helper_Gravatar
string
\Zend_View_Helper_Gravatar
setImgSize(integer $imgSize) : \Zend_View_Helper_Gravatar
integer
Size of img must be between 1 and 512
\Zend_View_Helper_Gravatar
setOptions(array $options) : \Zend_View_Helper_Gravatar
array
\Zend_View_Helper_Gravatar
setRating(string $rating)
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 |
---|
setSecure(boolean $flag) : \Zend_View_Helper_Gravatar
boolean
\Zend_View_Helper_Gravatar
setView(\Zend_View_Interface $view) : \Zend_View_Helper_Abstract
inherited_from | \Zend_View_Helper_Interface::setView() |
---|
\Zend_View_Interface
\Zend_View_Helper_Abstract
_getAvatarUrl() : string
string
_getGravatarUrl() : string
string
URL_htmlAttribs(array $attribs) : string
access | public |
---|
array
From this array, each key-value pair is converted to an attribute name and value.
string
The XHTML for the attributes._isHtml5() : boolean
boolean
_isStrictDoctype() : boolean
boolean
_isXhtml() : boolean
boolean
_normalizeId(string $value) : string
string
string
_setSrcAttribForImg()
You shouldn't set a own url value! It sets value, uses protected method _getAvatarUrl.
If already exsist overwritten.
$view : \Zend_View_Interface
null
$_attribs : array
$_closingBracket : string
null
$_email : string
DEFAULT_404 = '404'
DEFAULT_IDENTICON = 'identicon'
DEFAULT_MM = 'mm'
DEFAULT_MONSTERID = 'monsterid'
DEFAULT_WAVATAR = 'wavatar'
EOL = "\n"
GRAVATAR_URL = 'http://www.gravatar.com/avatar'
GRAVATAR_URL_SECURE = 'https://secure.gravatar.com/avatar'
RATING_G = 'g'
RATING_PG = 'pg'
RATING_R = 'r'
RATING_X = 'x'