src/core/framework/core/3rdparty/dwoo/Dwoo/Compiler.php
protected function loadProcessor($class, $name)
	{
		if (!class_exists($class, false) && !function_exists($class)) {
			try {
				$this->dwoo->getLoader()->loadPlugin($name);
			} catch (Dwoo_Exception $e) {
				throw new Dwoo_Exception('Processor '.$name.' could not be found in your plugin directories, please ensure it is in a file named '.$name.'.php in the plugin directory');
			}
		}

		if (class_exists($class, false)) {
			return array(new $class($this), 'process');
		}

		if (function_exists($class)) {
			return $class;
		}

		throw new Dwoo_Exception('Wrong processor name, when using autoload the processor must be in one of your plugin dir as "name.php" containg a class or function named "Dwoo_Processor_name"');
	}
protected function loadProcessor($class, $name)
	{
		if (!class_exists($class, false) && !function_exists($class)) {
			try {
				$this->dwoo->getLoader()->loadPlugin($name);
			} catch (Dwoo_Exception $e) {
				throw new Dwoo_Exception('Processor '.$name.' could not be found in your plugin directories, please ensure it is in a file named '.$name.'.php in the plugin directory');
			}
		}

		if (class_exists($class, false)) {
			return array(new $class($this), 'process');
		}

		if (function_exists($class)) {
			return $class;
		}

		throw new Dwoo_Exception('Wrong processor name, when using autoload the processor must be in one of your plugin dir as "name.php" containg a class or function named "Dwoo_Processor_name"');
	}
protected function loadProcessor ( $ class , $ name ) { if ( ! class_exists ( $ class , false ) && ! function_exists ( $ class ) ) { try { $ this -> dwoo -> getLoader ( ) -> loadPlugin ( $ name ) ; } catch ( Dwoo_Exception $ e ) { throw new Dwoo_Exception ( 'Processor ' . $ name . ' could not be found in your plugin directories, please ensure it is in a file named ' . $ name . '.php in the plugin directory' ) ; } } if ( class_exists ( $ class , false ) ) { return array ( new $ class ( $ this ) , 'process' ) ; } if ( function_exists ( $ class ) ) { return $ class ; } throw new Dwoo_Exception ( 'Wrong processor name, when using autoload the processor must be in one of your plugin dir as "name.php" containg a class or function named "Dwoo_Processor_name"' ) ; }
internal function to autoload processors at runtime if required

@param string $class the class/function name
@param string $name the plugin name (without Dwoo_Plugin_ prefix)
internal function to autoload processors at runtime if required