TYPO3
7.6
|
Public Member Functions | |
__construct ($url, $width, $height) | |
getUrl ($relativeToCurrentScript=false) | |
getWidth () | |
getHeight () | |
Protected Attributes | |
$url | |
$width | |
$height | |
Class Image
Holds url + dimensions of avatar image
Definition at line 24 of file typo3/sysext/backend/Classes/Backend/Avatar/Image.php.
__construct | ( | $url, | |
$width, | |||
$height | |||
) |
Constructor
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 50 of file typo3/sysext/backend/Classes/Backend/Avatar/Image.php.
References Image\$height, Image\$url, and Image\$width.
getHeight | ( | ) |
Get height
Definition at line 91 of file typo3/sysext/backend/Classes/Backend/Avatar/Image.php.
References Image\$height.
getUrl | ( | $relativeToCurrentScript = false | ) |
Get url
bool | $relativeToCurrentScript | Determines whether the URL returned should be relative to the current script, in case it is relative at all. |
Definition at line 63 of file typo3/sysext/backend/Classes/Backend/Avatar/Image.php.
References Image\$url, PathUtility\dirname(), PathUtility\getRelativePathTo(), and GeneralUtility\isValidUrl().
getWidth | ( | ) |
Get width
Definition at line 81 of file typo3/sysext/backend/Classes/Backend/Avatar/Image.php.
References Image\$width.
|
protected |
Definition at line 41 of file typo3/sysext/backend/Classes/Backend/Avatar/Image.php.
Referenced by Image\__construct(), and Image\getHeight().
|
protected |
Definition at line 31 of file typo3/sysext/backend/Classes/Backend/Avatar/Image.php.
Referenced by Image\__construct(), and Image\getUrl().
|
protected |
Definition at line 36 of file typo3/sysext/backend/Classes/Backend/Avatar/Image.php.
Referenced by Image\__construct(), and Image\getWidth().