/**
  * Generates a list of the available plugins along with their flashvars and default values.
  * @param string $config (optional) Pass in if you wish to load the plugin enabled state and flashvar values.
  * @return array The list of available plugins
  */
 public static function getPlugins(&$config_values = null)
 {
     $handler = opendir(LongTailFramework::getPluginPath());
     $plugins = array();
     while ($file = readdir($handler)) {
         if ($file != "." && $file != ".." && strstr($file, ".xml")) {
             $plugin = LongTailFramework::processPlugin($file, $config_values);
             $plugins[$plugin->getRepository()] = $plugin;
         }
     }
     return $plugins;
 }