phpPhotoGallery Documentation
General Information
Author: Mammino Claudio
Name: PhpPhotoGallery
Description: Thumbnails generator class
License: GNU General Public License (GPL)
Release Date: 11/02/2007
Version: 1.3
Contact: kobrax3@gmail.com

Class Description
The images can be loaded from a specified directory or one by one. The thumbnails can be showed in a single way or in a structured gallery, whit a fade effect.

Constructor: $obj = new myPhotoGallery(error [,typeThumbnails] [,scaleThumbnails] [,typePhoto] [,scalePhoto]);
Files required:
phpPhotoGallery.php
viewImage.php
Parameters:
error
true - Show errors
false - No show errors

typeThumbnails
0: To show thumbnails with width specified in $scaleThumbnails
1: To show thumbnails with a zoom specified in $scaleThumbnails

scaleThumbnails
numeric value

typePhoto
0: To show photo with width specified in $scalePhoto
1: To show photo with a zoom specified in $scalePhoto

scalePhoto
numeric value

Methods Description
Necessary function:
$obj->showGallery();
To return an image link array

$obj->showInTable(photoForRow)
To show thumbnails in a table with $photoForRow images for row

Main function:
$obj->addDirPhotoNames("myDir");
To add an images folder to gallery

$obj->addImageName(imageName [,id]);
To add an image resource to gallery, with id specified in the second optional parameter (this id can be used whit showThumbnail(id) function)

$obj->showThumbnail(id)
To show a single thumbnail with specified $id

Debug function:
$obj->printSource();
To print main data array

Versions History
Ver 1.0 First gallery engine
Ver 1.1 Add thumbnail fade effect
Ver 1.2 Add the possibility to specify a photo zoom
Ver 1.3 Add the possibility to add multiple photo folders.