1 <?php
3 class servtabs extends tabs
4 {
6 function servtabs($config, $data, $dn,$category)
7 {
8 tabs::tabs($config, $data, $dn, $category);
10 /* Add references/acls/snapshots */
11 $this->addSpecialTabs();
12 }
14 function save_object($save_current= FALSE)
15 {
16 tabs::save_object($save_current);
17 }
20 function save($ignore_account= FALSE)
21 {
22 /* Check for new 'dn', in order to propagate the
23 'dn' to all plugins */
24 $baseobject= $this->by_object['servgeneric'];
25 $this->dn= "cn=$baseobject->cn,ou=servers,ou=systems,".$baseobject->base;
26 $baseobject->dn= $this->dn;
28 foreach ($this->by_object as $key => $obj){
29 $this->by_object[$key]->dn= $this->dn;
30 $this->by_object[$key]->cn= $baseobject->cn;
31 }
33 tabs::save(FALSE);
35 /* Reload server settings after saving */
36 $config= $_SESSION['config'];
37 $config->load_servers();
38 $_SESSION['config']= $config;
40 /* Fix tagging if needed */
41 $baseobject->handle_object_tagging();
42 }
44 }
46 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
47 ?>