PhpThumb Object
This singleton object is essentially a function library that helps with core validation and loading of the core classes and plugins. There isn't really any need to access it directly, unless you're developing a plugin and need to take advantage of any of the functionality contained within.
If you're not familiar with singleton patterns, here's how you get an instance of this class (since you can't create one via the new keyword):
It's that simple! Outside of that, there's no need to modify anything within this class, unless you're doing some crazy customization... then knock yourself out! :)
Located in /legacy/PhpThumb.inc.php (line 45)
Instance of self
What implementations are available
This stores what implementations are available based on the loaded extensions in PHP, NOT whether or not the class files are present.
The plugin registry
This is where all plugins to be loaded are stored. Data about the plugin is provided, and currently consists of:
Returns an instance of self
This is the usual singleton function that returns / instantiates the object
Returns the plugin registry for the supplied implementation
Returns whether or not $implementation is valid (available)
If 'all' is passed, true is only returned if ALL implementations are available.
You can also pass 'n/a', which always returns true
Loads all the plugins in $pluginPath
All this function does is include all files inside the $pluginPath directory. The plugins themselves will not be added to the registry unless you've properly added the code to do so inside your plugin file.
Registers a plugin in the registry
Adds a plugin to the registry if it isn't already loaded, and if the provided implementation is valid. Note that you can pass the following special keywords for implementation:
Documentation generated on Tue, 09 Aug 2011 09:05:34 +0200 by phpDocumentor 1.4.3