Class: ImageManager
Source Location: /main/inc/lib/fckeditor/editor/plugins/ImageManager/Classes/ImageManager.php
ImageManager Class.
Author(s):
Version:
- $Id: ImageManager.php 27 2004-04-01 08:31:57Z Wei Zhuo $
|
|
|
Class Details
Class Variables
Class Methods
constructor ImageManager [line 32]
ImageManager ImageManager(
array
$config)
|
|
Constructor. Create a new Image Manager instance.
Parameters:
method countFiles [line 191]
Count the number of files and directories in a given folder minus the thumbnail folders and thumbnails.
Parameters:
method deleteDirs [line 607]
Delete and specified directories.
Tags:
method deleteFiles [line 595]
Delete and specified files.
Tags:
method getBaseDir [line 41]
Get the base directory.
Tags:
method getBaseURL [line 50]
method getDefaultThumb [line 530]
string getDefaultThumb(
)
|
|
Get the default thumbnail.
Tags:
method getDirs [line 77]
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.
Tags:
method getFiles [line 136]
array getFiles(
string
$path)
|
|
Get all the files and directories of a relative path.
Tags:
Parameters:
method getFileURL [line 510]
string getFileURL(
string
$relative)
|
|
Get the URL of the relative file. basically appends the relative file to the base_url given in config.inc.php
Tags:
Parameters:
method getFullPath [line 520]
string getFullPath(
string
$relative)
|
|
Get the fullpath to a relative file.
Tags:
Parameters:
method getImageInfo [line 221]
array getImageInfo(
string
$file)
|
|
Get image size information.
Tags:
Parameters:
method getThumbnail [line 556]
string getThumbnail(
string
$relative)
|
|
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.
Tags:
Parameters:
method getThumbName [line 274]
string getThumbName(
string
$fullpathfile)
|
|
For a given image file, get the respective thumbnail filename no file existence check is done.
Tags:
Parameters:
method getThumbURL [line 308]
string getThumbURL(
string
$relative)
|
|
Similar to getThumbName, but returns the URL, base on the given base_url in config.inc.php
Tags:
Parameters:
method getTmpPrefix [line 64]
Get the tmp file prefix.
Tags:
method isThumb [line 231]
true isThumb(
string
$file)
|
|
Check if the file contains the thumbnail prefix.
Tags:
Parameters:
method isThumbDir [line 245]
true isThumbDir(
string
$entry)
|
|
Check if the given directory is a thumbnail directory.
Tags:
Parameters:
method isTmpFile [line 259]
boolean isTmpFile(
string
$file)
|
|
Check if the given file is a tmp file.
Tags:
Parameters:
method isValidBase [line 55]
method processNewDir [line 658]
Create new directories. If in safe_mode, nothing happens.
Tags:
method processUploads [line 368]
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.
method validGraphicMethods [line 682]
boolean validGraphicMethods(
string
$library, string
$method)
|
|
Do some graphic library method checkings
Tags:
Parameters:
method validRelativePath [line 341]
boolean validRelativePath(
string
$path)
|
|
Check if the given path is part of the subdirectories under the base_dir.
Tags:
Parameters:
method _checkGDLibrary [line 712]
boolean _checkGDLibrary(
$method, string
$library)
|
|
Check the GD library functionality.
Tags:
Parameters:
method _checkIMLibrary [line 698]
void _checkIMLibrary(
$method)
|
|
Parameters:
method _delDir [line 644]
boolean _delDir(
string
$relative)
|
|
Delete directories recursively.
Tags:
Parameters:
method _deletePictureInDatabase [line 411]
void _deletePictureInDatabase(
$relative)
|
|
Parameters:
method _delFile [line 620]
boolean _delFile(
string
$relative)
|
|
Delete the relative file, and any thumbnails.
Tags:
Parameters:
method _dirs [line 96]
array _dirs(
string
$base, string
$path)
|
|
Recursively travese the directories to get a list of accessable directories.
Tags:
Parameters:
method _insertPictureInDatabase [line 394]
void _insertPictureInDatabase(
string
$relative, array
$file, String
$file_name)
|
|
Insert the uploaded picture in the database.
Parameters:
method _processFiles [line 446]
boolean _processFiles(
string
$relative, array
$file)
|
|
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.
Tags:
Parameters:
|
|