Code

Updated workstation - Startup
[gosa.git] / plugins / admin / systems / tabs_server.inc
index e9cae2eda3066a8e2de1d16701b1458ab9fdb540..564e92588c539b505f19c0e04b185e0ccdda3dbd 100644 (file)
@@ -5,7 +5,30 @@ class servtabs extends tabs
 
   function servtabs($config, $data, $dn,$category)
   {
-    tabs::tabs($config, $data, $dn, $category);
+    /* Save dn */
+    $this->dn= $dn;
+    $this->config= $config;
+
+    $baseobject= NULL;
+
+    foreach ($data as $tab){
+      $this->by_name[$tab['CLASS']]= $tab['NAME'];
+
+      if ($baseobject === NULL){
+        $baseobject= new $tab['CLASS']($this->config, $this->dn,NULL,$this);
+        $this->by_object[$tab['CLASS']]= $baseobject;
+      } else {
+        $this->by_object[$tab['CLASS']]= new $tab['CLASS']($this->config, $this->dn, $baseobject,$this);
+      }
+
+      $this->by_object[$tab['CLASS']]->parent= &$this;
+      $this->by_object[$tab['CLASS']]->set_acl_category($category);
+
+      /* Initialize current */
+      if ($this->current == ""){
+        $this->current= $tab['CLASS'];
+      }
+    }
 
     /* Add references/acls/snapshots */
     $this->addSpecialTabs();