PhpThumb::loadPlugins PHP Method

loadPlugins() public method

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.
public loadPlugins ( string $pluginPath )
$pluginPath string
    public function loadPlugins($pluginPath)
    {
        // strip the trailing slash if present
        if (substr($pluginPath, strlen($pluginPath) - 1, 1) == '/') {
            $pluginPath = substr($pluginPath, 0, strlen($pluginPath) - 1);
        }
        if ($handle = opendir($pluginPath)) {
            while (false !== ($file = readdir($handle))) {
                if ($file == '.' || $file == '..' || $file == '.svn') {
                    continue;
                }
                include_once $pluginPath . '/' . $file;
            }
        }
    }