/**
  * show list of plugins
  *
  * @return void
  * @author Andy Bennett
  */
 function admin()
 {
     $pm = new PluginManager();
     $view = new View('plugins/index');
     $view->set('plugins', $pm->getPluginObjects());
     $copy = $view->render();
     $this->render($copy);
 }
 function edit()
 {
     $c = new Container($this->uri->segment(3, $_POST['container']));
     // This includes deactivated plugins! They need to be filtered out
     $pm = new PluginManager();
     $all_plugins = $pm->getPluginObjects();
     $container_plugins = $c->getPlugins();
     /*	   	print Kohana::debug($all_plugins);
         	print Kohana::debug($container_plugins);
         	// This returns only the instantiated objects
         	print Kohana::debug(array_intersect_key($all_plugins, $container_plugins));*/
     $view = new View('containers_edit');
     $view->container = $c;
     objectSort($all_plugins, 'column');
     $view->all_plugins = $all_plugins;
     $view->plugin_instances = $container_plugins;
     $copy = $view->render();
     $this->render($copy);
 }