src/gallery/phpthumb/ThumbBase.inc.php
protected function imports ($object)
	{
		// the new object to import
		$newImport 			= new $object();
		// the name of the new object (class name)
		$importName			= get_class($newImport);
		// the new functions to import
		$importFunctions 	= get_class_methods($newImport);
		
		// add the object to the registry
		array_push($this->imported, array($importName, $newImport));
		
		// add the methods to the registry
		foreach ($importFunctions as $key => $functionName)
		{
			$this->importedFunctions[$functionName] = &$newImport;
		}
	}
protected function imports ($object)
	{
		// the new object to import
		$newImport 			= new $object();
		// the name of the new object (class name)
		$importName			= get_class($newImport);
		// the new functions to import
		$importFunctions 	= get_class_methods($newImport);
		
		// add the object to the registry
		array_push($this->imported, array($importName, $newImport));
		
		// add the methods to the registry
		foreach ($importFunctions as $key => $functionName)
		{
			$this->importedFunctions[$functionName] = &$newImport;
		}
	}
protected function imports ( $ object ) { // the new object to import $ newImport = new $ object ( ) ; // the name of the new object (class name) $ importName = get_class ( $ newImport ) ; // the new functions to import $ importFunctions = get_class_methods ( $ newImport ) ; // add the object to the registry array_push ( $ this -> imported , array ( $ importName , $ newImport ) ) ; // add the methods to the registry foreach ( $ importFunctions as $ key => $ functionName ) { $ this -> importedFunctions [ $ functionName ] = & $ newImport ; } }
Imports a plugin

This is where all the plugins magic happens!  This function "loads" the plugin functions, making them available as
methods on the class.

@param string $object The name of the object to import / "load"
Imports a plugin