class CAvatarLibrary extends CAvatar


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

Maintain classname compatibility with JomSocial 1.6 below

Properties

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

Methods

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

No description

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

Draws an for the specific image based on the image type

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

No description

from CAvatar
_openImage($file)

Open image file

from CAvatar
debug()

No description

from CAvatar

Details

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

Parameters

$path
$forceCreate

in CAvatar 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

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

Parameters

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

in CAvatar at line 190
_openImage($file)

Open image file

Parameters

$file

in CAvatar at line 229
debug()