class CAvatar


Located at : UKNOWVA_ROOT/components/com_community/libraries/avatar.php

Properties

$_path
$_relative
$_allowed
$_image
$_filename
$_width
$_height
$_tmp
$_error
$_size
$_type

Methods

CAvatar($path = null, $forceCreate = false)

No description

draw(int $filename, string $image, Array $width, int $thumbnail = false, int $maxWidth = false)

Draws an for the specific image based on the image type

_create($file, $sourceX, $sourceY, $width, $height, $currentWidth, $currentHeight)

No description

_openImage($file)

Open image file

debug()

No description

Details

at line 32
CAvatar($path = null, $forceCreate = false)

Parameters

$path
$forceCreate

at line 66
draw(int $filename, string $image, Array $width, int $thumbnail = false, int $maxWidth = false)

Draws an for the specific image based on the image type

Parameters

int $filename Type of the image (thumbnail = 0 ), (medium = 1), (large = 2)
string $image The file name of the thumbnail
Array $width An array that stores the uploaded image details
int $thumbnail The width of the thumbnail
int $maxWidth Height of the thumbnail

at line 138
_create($file, $sourceX, $sourceY, $width, $height, $currentWidth, $currentHeight)

Parameters

$file
$sourceX
$sourceY
$width
$height
$currentWidth
$currentHeight

at line 190
_openImage($file)

Open image file

Parameters

$file

at line 229
debug()