SGL_ImageBase image class.
Located in /SGL/Image.php (line 48)
boolean
create
(string $srcLocation, [string $callback = 'move_uploaded_file'], [boolean $replace = false])
string
$fileName
(line 55)
Image file name e.g. my-image-name.jpg.
string
$moduleName
(line 62)
Name of module, which uses this class.
array
$_aParams
= array() (line 69)
Used for image modification.
array
$_aStrats
= array() (line 83)
Loaded strategies.
array
$_aThumbnails
= array() (line 76)
Thumbnails params are stored here.
static _ensureDirIsWritable (line 573)
static _isInstanceMethod (line 681)
Check if SGL_Image instance is initialized.
static _isStaticMethod (line 666)
Check if method is called statically.
Constructor SGL_Image (line 93)
Constructor.
create (line 244)
Upload image and create thumbnails.
delete (line 301)
Delete image and it's thumbnails.
generateUniqueFileName (line 167)
Generate filename.
getFileName (line 110)
Get filename.
getPath (line 183)
Get path to image folder. Can be called statically or as instance call.
getThumbnailNames (line 428)
getUrl (line 207)
Get URL to image folder. Can be called statically or as instance call.
It is only possible to get an URL to a folder if we place files at SGL_MOD_DIR/$moduleName/www/images. To achieve this we must specify a module name during image instantiation or as an argument here.
init (line 127)
Initialize SGL_Image instance. Can parse the specified ini file passed as $params or use the prepeared array directly.
Load strategies taking into account extracted params.
isTransformable (line 223)
isValidImage (line 217)
replace (line 287)
Alias for SGL_Image#create($srcLocation, $callback, $replace = true).
setImagePath (line 411)
transform (line 335)
Transform image.
transformAll (line 393)
Transform main image and all it's thumbnails by loaded strategies.
_getImagePath (line 472)
_loadStrategies (line 601)
_setParams (line 442)
Set modification params.
_toThumbnails (line 528)
Copy, move or delete thumbnails, using original image.
Documentation generated on Tue, 23 Feb 2010 18:14:30 +0000 by phpDocumentor 1.4.3