ImageManagerImageManager Class.
Located in /plugins/ImageManager/Classes/ImageManager.php (line 20)
Constructor ImageManager (line 36)
Constructor. Create a new Image Manager instance.
countFiles (line 195)
Count the number of files and directories in a given folder minus the thumbnail folders and thumbnails.
deleteDirs (line 575)
Delete specified directories.
deleteFiles (line 564)
Delete and specified files.
getDefaultThumb (line 482)
Get the default thumbnail.
getDirs (line 81)
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.
getFiles (line 140)
Get all the files and directories of a relative path.
getFileURL (line 462)
Get the URL of the relative file.
basically appends the relative file to the base_url given in config.inc.php
getFullPath (line 472)
Get the fullpath to a relative file.
getImageInfo (line 225)
Get image size information.
getImagesDir (line 45)
Get the images base directory.
getImagesURL (line 54)
Get the images base URL.
getThumbnail (line 515)
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.
getThumbName (line 278)
For a given image file, get the respective thumbnail filename no file existence check is done.
getThumbURL (line 312)
Similar to getThumbName, but returns the URL, base on the
given base_url in config.inc.php
getTmpPrefix (line 68)
Get the tmp file prefix.
isThumb (line 235)
Check if the file contains the thumbnail prefix.
isThumbDir (line 249)
Check if the given directory is a thumbnail directory.
isTmpFile (line 263)
Check if the given file is a tmp file.
isValidBase (line 59)
processNewDir (line 639)
Create new directories.
If in safe_mode, nothing happens.
processUploads (line 378)
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.
validRelativePath (line 351)
Check if the given path is part of the subdirectories under the base_dir.
_delDir (line 621)
Delete directories recursively.
_delFile (line 593)
Delete the relative file, and any thumbnails, if enabled
_dirs (line 100)
Recursively travese the directories to get a list of accessable directories.
_processFiles (line 409)
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