ImageManager Class.
Located in /plugins/ImageManager/Classes/ImageManager.php (line 20)
Constructor. Create a new Image Manager instance.
Count the number of files and directories in a given folder minus the thumbnail folders and thumbnails.
Delete specified directories.
Delete and specified files.
Get the default thumbnail.
Get the sub directories in the base dir.
Each array element contain the relative path (relative to the base dir) as key and the full path as value.
Get all the files and directories of a relative path.
Get the URL of the relative file.
basically appends the relative file to the base_url given in config.inc.php
Get the fullpath to a relative file.
Get image size information.
Get the images base directory.
Get the images base URL.
Get the thumbnail url to be displayed.
If the thumbnail exists, and it is up-to-date the thumbnail url will be returns. If the file is not an image, a default image will be returned. If it is an image file, and no thumbnail exists or the thumbnail is out-of-date (i.e. the thumbnail modified time is less than the original file) then a thumbs.php?img=filename.jpg is returned. The thumbs.php url will generate a new thumbnail on the fly. If the image is less than the dimensions of the thumbnails, the image will be display instead.
For a given image file, get the respective thumbnail filename no file existence check is done.
Similar to getThumbName, but returns the URL, base on the
given base_url in config.inc.php
Get the tmp file prefix.
Check if the file contains the thumbnail prefix.
Check if the given directory is a thumbnail directory.
Check if the given file is a tmp file.
Create new directories.
If in safe_mode, nothing happens.
Process uploaded files, assumes the file is in $_FILES['upload'] and $_POST['dir'] is set.
The dir must be relative to the base_dir and exists. If 'validate_images' is set to true, only file with image dimensions will be accepted.
Check if the given path is part of the subdirectories under the base_dir.
Delete directories recursively.
Delete the relative file, and any thumbnails, if enabled
Recursively travese the directories to get a list of accessable directories.
Process upload files. The file must be an
uploaded file. If 'validate_images' is set to true, only images will be processed. Any duplicate file will be renamed. See Files::copyFile for details on renaming.
Documentation generated on Sat, 31 Dec 2005 14:56:53 -0500 by phpDocumentor 1.3.0RC3