Code

Updated device plugin
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Sep 2010 13:38:07 +0000 (13:38 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Sep 2010 13:38:07 +0000 (13:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19688 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/devices/class_registeredDevice.inc

index 0f82cd36b7b2637cb3802710827c0bc6c2f103a4..c947f5b5e17bf051393f3dbfada3dc407bbba132 100644 (file)
@@ -11,13 +11,22 @@ class registeredDevice extends plugin
     function execute()
     {
         plugin::execute();    
-
         $smarty = get_smarty();
         foreach($this->attributes as $attr){
             $smarty->assign($attr, $this->$attr);
         }
         return($smarty->fetch(get_template_path('goto/devices/registeredDevice.tpl', TRUE)));
-    
+    }
+
+
+    function save()
+    {
+        plugin::save();
+        $this->cleanup();
+        $ldap=$this->config->get_ldap_link();
+        $ldap->cd($this->config->current['BASE']);
+        $ldap->cd($this->dn);
+        $ldap->modify($this->attrs);
     }
 
 
@@ -45,8 +54,9 @@ class registeredDevice extends plugin
                         "manager" => _("Manager"),
                         "deviceUUID" => _("Uuid"),
                         "deviceStatus" => _("Stauts")
-                    )
-                    ));
+                        )
+                        )
+                        );
     }
 }