Code

941203e24aa8ef958e81f8bfd95dfdc83aaf69ad
[gosa.git] / plugins / admin / systems / tabs_component.inc
1 <?php
3 class componenttabs extends tabs
4 {
6   function componenttabs($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['componentGeneric'];
25     $this->dn= "cn=$baseobject->cn,ou=netdevices,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     }
32     tabs::save(TRUE);
34     /* Fix tagging if needed */
35     $baseobject->handle_object_tagging();
36   }
38 }
40 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
41 ?>