Code

Fixed headpage
[gosa.git] / plugins / admin / systems / tabs_terminal.inc
1 <?php
3 class termtabs extends tabs
4 {
6   function termtabs($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);
15     /* Update reference, transfer variables */
16     $this->by_object['termstartup']->gotoTerminalPath=
17       $this->by_object['termgeneric']->gotoTerminalPath;
18   }
21   function save()
22   {
23     /* Check for new 'dn', in order to propagate the
24        'dn' to all plugins */
25     $baseobject= $this->by_object['termgeneric'];
26     $this->dn= "cn=".$baseobject->cn.",ou=terminals,ou=systems,".$baseobject->base;
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(TRUE);
34     if(($this->by_object['printgeneric']->is_account==false)&&($this->by_object['printgeneric']->initially_was_account==true)){
35       $this->by_object['printgeneric']->remove_from_parent();
36     }
38   }
40 }
42 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
43 ?>