‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Backend\Avatar\Image Class Reference

Public Member Functions

 __construct ($url, $width, $height)
string getUrl ()
int getWidth ()
int getHeight ()

Protected Attributes

string $url
int $width
int $height

Detailed Description

Acts as a pseudo model for holding all information of an avatar image Holds url + dimensions of avatar image

Definition at line 22 of file Image.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Backend\Avatar\Image::__construct (   $url,
string$url‪url of image. Needs to be relative to the website root or an absolute URL.
int$width‪width of image
int$height‪height of image

Definition at line 43 of file Image.php.

References TYPO3\CMS\Backend\Backend\Avatar\Image\$height, TYPO3\CMS\Backend\Backend\Avatar\Image\$url, and TYPO3\CMS\Backend\Backend\Avatar\Image\$width.

Member Function Documentation

◆ getHeight()

int TYPO3\CMS\Backend\Backend\Avatar\Image::getHeight ( )

Definition at line 71 of file Image.php.

References TYPO3\CMS\Backend\Backend\Avatar\Image\$height.

◆ getUrl()

string TYPO3\CMS\Backend\Backend\Avatar\Image::getUrl ( )

Fetches the URL to the the avatar image


Definition at line 55 of file Image.php.

References TYPO3\CMS\Backend\Backend\Avatar\Image\$url.

◆ getWidth()

int TYPO3\CMS\Backend\Backend\Avatar\Image::getWidth ( )

Definition at line 63 of file Image.php.

References TYPO3\CMS\Backend\Backend\Avatar\Image\$width.

Member Data Documentation

◆ $height

int TYPO3\CMS\Backend\Backend\Avatar\Image::$height

◆ $url

string TYPO3\CMS\Backend\Backend\Avatar\Image::$url

Url of avatar image. Needs to be relative to the website root or an absolute URL.

Definition at line 28 of file Image.php.

Referenced by TYPO3\CMS\Backend\Backend\Avatar\Image\__construct(), and TYPO3\CMS\Backend\Backend\Avatar\Image\getUrl().

◆ $width

int TYPO3\CMS\Backend\Backend\Avatar\Image::$width