public function getPluginInfo($plugin)
{
foreach (array_reverse($this->paths) as $path) {
$file = $path['path'] . $plugin . '.php';
if (file_exists($file)) {
$path = array('dir' => $path['path'], 'file' => $file, 'class' => $path['prefix'] . $plugin);
return $path;
}
}
// If the class can't be found, display an error
throw new Phergie_Plugin_Exception('Class file for plugin "' . $plugin . '" cannot be found', Phergie_Plugin_Exception::ERR_CLASS_NOT_FOUND);
}