Property | Type | Description | |
---|---|---|---|
$_implementations | array | This stores what implementations are available based on the loaded extensions in PHP, NOT whether or not the class files are present. | |
$_instance | Instance of self | ||
$_registry | array | This is where all plugins to be loaded are stored. Data about the plugin is provided, and currently consists of: - loaded: true/false - implementation: gd/imagick/both |
Method | Description | |
---|---|---|
getInstance ( ) : PhpThumb | Returns an instance of self | |
getPluginRegistry ( string $implementation ) : array | Returns the plugin registry for the supplied implementation | |
isValidImplementation ( string $implementation ) : boolean | Returns whether or not $implementation is valid (available) | |
loadPlugins ( string $pluginPath ) | Loads all the plugins in $pluginPath | |
registerPlugin ( string $pluginName, string $implementation ) : boolean | Registers a plugin in the registry |
Method | Description | |
---|---|---|
__construct ( ) | Class constructor | |
getImplementations ( ) | Finds out what implementations are available |
public static getInstance ( ) : PhpThumb | ||
return | PhpThumb |
public getPluginRegistry ( string $implementation ) : array | ||
$implementation | string | |
return | array |
public isValidImplementation ( string $implementation ) : boolean | ||
$implementation | string | |
return | boolean |
public loadPlugins ( string $pluginPath ) | ||
$pluginPath | string |
protected array $_implementations | ||
return | array |
protected array $_registry | ||
return | array |