TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
Image Class Reference

Public Member Functions

 __construct ($url, $width, $height)
 
 getUrl ($relativeToCurrentScript=false)
 
 getWidth ()
 
 getHeight ()
 

Protected Attributes

 $url
 
 $width
 
 $height
 

Detailed Description

Class Image

Holds url + dimensions of avatar image

Definition at line 24 of file typo3/sysext/backend/Classes/Backend/Avatar/Image.php.

Constructor & Destructor Documentation

__construct (   $url,
  $width,
  $height 
)

Constructor

Parameters
string$urlurl of image. Needs to be relative to the website root or an absolute URL.
int$widthwidth of image
int$heightheight of image

Definition at line 50 of file typo3/sysext/backend/Classes/Backend/Avatar/Image.php.

References Image\$height, Image\$url, and Image\$width.

Member Function Documentation

getHeight ( )

Get height

Returns
int

Definition at line 91 of file typo3/sysext/backend/Classes/Backend/Avatar/Image.php.

References Image\$height.

getUrl (   $relativeToCurrentScript = false)

Get url

Parameters
bool$relativeToCurrentScriptDetermines whether the URL returned should be relative to the current script, in case it is relative at all.
Returns
string

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

Returns
int

Definition at line 81 of file typo3/sysext/backend/Classes/Backend/Avatar/Image.php.

References Image\$width.

Member Data Documentation

$height
protected
$url
protected
$width
protected