src/core/framework/core/3rdparty/dwoo/Dwoo/Loader.php
public function loadPlugin($class, $forceRehash = true)
	{
		// a new class was added or the include failed so we rebuild the cache
		if (!isset($this->classPath[$class]) || !(include $this->classPath[$class])) {
			if ($forceRehash) {
				$this->rebuildClassPathCache($this->corePluginDir, $this->cacheDir . 'classpath.cache.d'.Dwoo::RELEASE_TAG.'.php');
				foreach ($this->paths as $path=>$file) {
					$this->rebuildClassPathCache($path, $file);
				}
				if (isset($this->classPath[$class])) {
					include $this->classPath[$class];
				} else {
					throw new Dwoo_Exception('Plugin <em>'.$class.'</em> can not be found, maybe you forgot to bind it if it\'s a custom plugin ?', E_USER_NOTICE);
				}
			} else {
				throw new Dwoo_Exception('Plugin <em>'.$class.'</em> can not be found, maybe you forgot to bind it if it\'s a custom plugin ?', E_USER_NOTICE);
			}
		}
	}
public function loadPlugin($class, $forceRehash = true)
	{
		// a new class was added or the include failed so we rebuild the cache
		if (!isset($this->classPath[$class]) || !(include $this->classPath[$class])) {
			if ($forceRehash) {
				$this->rebuildClassPathCache($this->corePluginDir, $this->cacheDir . 'classpath.cache.d'.Dwoo::RELEASE_TAG.'.php');
				foreach ($this->paths as $path=>$file) {
					$this->rebuildClassPathCache($path, $file);
				}
				if (isset($this->classPath[$class])) {
					include $this->classPath[$class];
				} else {
					throw new Dwoo_Exception('Plugin <em>'.$class.'</em> can not be found, maybe you forgot to bind it if it\'s a custom plugin ?', E_USER_NOTICE);
				}
			} else {
				throw new Dwoo_Exception('Plugin <em>'.$class.'</em> can not be found, maybe you forgot to bind it if it\'s a custom plugin ?', E_USER_NOTICE);
			}
		}
	}
public function loadPlugin ( $ class , $ forceRehash = true ) { // a new class was added or the include failed so we rebuild the cache if ( ! isset ( $ this -> classPath [ $ class ] ) || ! ( include $ this -> classPath [ $ class ] ) ) { if ( $ forceRehash ) { $ this -> rebuildClassPathCache ( $ this -> corePluginDir , $ this -> cacheDir . 'classpath.cache.d' . Dwoo :: RELEASE_TAG . '.php' ) ; foreach ( $ this -> paths as $ path => $ file ) { $ this -> rebuildClassPathCache ( $ path , $ file ) ; } if ( isset ( $ this -> classPath [ $ class ] ) ) { include $ this -> classPath [ $ class ] ; } else { throw new Dwoo_Exception ( 'Plugin <em>' . $ class . '</em> can not be found, maybe you forgot to bind it if it\'s a custom plugin ?' , E_USER_NOTICE ) ; } } else { throw new Dwoo_Exception ( 'Plugin <em>' . $ class . '</em> can not be found, maybe you forgot to bind it if it\'s a custom plugin ?' , E_USER_NOTICE ) ; } } }
loads a plugin file

@param string $class the plugin name, without the Dwoo_Plugin_ prefix
@param bool $forceRehash if true, the class path caches will be rebuilt if the plugin is not found, in case it has just been added, defaults to true
loads a plugin file