![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct () | |
render (array $backendUser=null, $size=32, $showIcon=false) | |
getImgTag (array $backendUser=null, $size=32) | |
getImage (array $backendUser, $size) | |
Protected Member Functions | |
validateSortAndInitiateAvatarProviders () | |
getBackendUser () | |
Protected Attributes | |
$avatarProviders = [] | |
Avatar renderer class
Definition at line 25 of file Avatar.php.
__construct | ( | ) |
Construct
Definition at line 37 of file Avatar.php.
References Avatar\validateSortAndInitiateAvatarProviders().
|
protected |
Returns the current BE user.
Definition at line 148 of file Avatar.php.
References $GLOBALS.
Referenced by Avatar\getImgTag(), and Avatar\render().
getImage | ( | array | $backendUser, |
$size | |||
) |
Get Image from first provider that returns one
array | $backendUser | be_users record |
int | $size |
Definition at line 100 of file Avatar.php.
Referenced by Avatar\getImgTag().
getImgTag | ( | array | $backendUser = null , |
$size = 32 |
|||
) |
Get avatar img tag
array | $backendUser | be_users record |
int | $size |
Definition at line 75 of file Avatar.php.
References Avatar\getBackendUser(), and Avatar\getImage().
Referenced by Avatar\render().
render | ( | array | $backendUser = null , |
$size = 32 , |
|||
$showIcon = false |
|||
) |
Render avatar tag
array | $backendUser | be_users record |
int | $size | width and height of the image |
bool | $showIcon | show the record icon |
Definition at line 50 of file Avatar.php.
References Avatar\getBackendUser(), Avatar\getImgTag(), GeneralUtility\makeInstance(), and Icon\SIZE_SMALL.
|
protected |
Validates the registered avatar providers
\RuntimeException |
Definition at line 117 of file Avatar.php.
References $GLOBALS, and GeneralUtility\makeInstance().
Referenced by Avatar\__construct().
|
protected |
Definition at line 32 of file Avatar.php.