Code

Updated tabs to show inherit instead of default
[gosa.git] / plugins / admin / systems / tabs_server.inc
1 <?php
3 class servtabs extends tabs
4 {
6   function servtabs($config, $data, $dn)
7   {
8     tabs::tabs($config, $data, $dn);
9   }
11   function save_object($save_current= FALSE)
12   {
13     tabs::save_object($save_current);
14   }
17   function save()
18   {
19     /* Check for new 'dn', in order to propagate the
20        'dn' to all plugins */
21     $baseobject= $this->by_object['servgeneric'];
22     $this->dn= "cn=$baseobject->cn,ou=servers,ou=systems,".$baseobject->base;
24     foreach ($this->by_object as $key => $obj){
25       $this->by_object[$key]->dn= $this->dn;
26       $this->by_object[$key]->cn= $baseobject->cn;
27     }
29     tabs::save(FALSE);
31     /* Reload server settings after saving */
32     $config= $_SESSION['config'];
33     $config->load_servers();
34     $_SESSION['config']= $config;
36     /* Fix tagging if needed */
37     $baseobject->handle_object_tagging();
38   }
40 }
42 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
43 ?>