Code

Fixed W3C conformance problem
[gosa.git] / plugins / admin / systems / tabs_workstation.inc
1 <?php
3 class worktabs extends tabs
4 {
6   function worktabs($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['workgeneric']->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['workgeneric'];
26     $this->dn= "cn=".$baseobject->cn.",ou=workstations,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   }
36 }
38 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
39 ?>