Code

Added list actions
[gosa.git] / gosa-core / plugins / admin / newConfigManagement / class_newConfigManagement.inc
index 4d5822c88b70dd83d07cd184bd31f481d6eebbd3..f038f01b399189f217070530afeff19b0ce6d364 100644 (file)
@@ -18,7 +18,7 @@ class newConfigManagement extends plugin
     function __construct($config, $dn)
     {
         $this->config = &$config;
-        $this->listing = new ConfigManagementListing($this->config, get_userinfo());
+        $this->listing = new ConfigManagementListing($this->config, get_userinfo(), $this);
 
         // Request an update of the data model
         $this->updateDataModel();
@@ -133,6 +133,7 @@ class newConfigManagement extends plugin
      */
     function execute()
     {
+
         // Get the selected release and store it in a session variable
         //  to allow the configFilter to access it and display the
         //  packages and items.
@@ -141,7 +142,7 @@ class newConfigManagement extends plugin
         session::set('CONFIG_ITEM', $item);
         $this->listing->setListingTypes($this->getListingTypes());
 
-        return($this->listing->renderList());
+        return($this->listing->execute());
     }
 
 
@@ -235,13 +236,32 @@ class newConfigManagement extends plugin
 
         $types['Release']['objectClass'] = 'Release';
         $types['Release']['label'] = _('Release');
-        $types['Release']['image'] = 'images/lists/edit.png';
+        $types['Release']['image'] = 'images/lists/delete.png';
         $types['Release']['category'] = 'Device';
         $types['Release']['class'] = 'Device';
+
+        $types['Component']['objectClass'] = 'Component';
+        $types['Component']['label'] = _('Component');
+        $types['Component']['image'] = 'plugins/users/images/select_user.png';
+        $types['Component']['category'] = 'Device';
+        $types['Component']['class'] = 'Device';
         return($types);
     }
 
 
+
+    function editEntry($id)
+    {
+        print_a($id);
+    }
+
+
+    function removeEntry($id)
+    {
+        print_a($id); 
+    }
+
+
     public static function plInfo()
     {
         return (array(