PhpThumbFactory Object
This class is responsible for making sure everything is set up and initialized properly, and returning the appropriate thumbnail class instance. It is the only recommended way of using this library, and if you try and circumvent it, the sky will fall on your head :)
Basic use is easy enough. First, make sure all the settings meet your needs and environment... these are the static variables defined at the beginning of the class.
Once that's all set, usage is pretty easy. You can simply do something like:
Refer to the documentation for the create function for more information
Located in /legacy/thumbnail.class.php (line 65)
Which implemenation of the class should be used by default
Currently, valid options are:
Where the plugins can be loaded from
Note, it's important that this path is properly defined. It is very likely that you'll have to change this, as the assumption here is based on a relative path.
Factory Function
This function returns the correct thumbnail object, augmented with any appropriate plugins. It does so by doing the following:
Documentation generated on Tue, 09 Aug 2011 09:05:39 +0200 by phpDocumentor 1.4.3