Code

Created trunk inside of 2.6-lhm
[gosa.git] / trunk / gosa-plugins / gofon / admin / systems / gofon / tabs_phone.inc
1 <?php
3 class phonetabs extends tabs
4 {
6   function phonetabs($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);
18     $baseobject = $this->by_object['phoneGeneric'];
19     $baseobject->netConfigDNS->cn= $baseobject->cn;
20   }
23   function save($ignore_account= FALSE)
24   {
25     /* Check for new 'dn', in order to propagate the
26        'dn' to all plugins */
27     $baseobject= $this->by_object['phoneGeneric'];
28     $this->dn= "cn=$baseobject->cn,".get_ou('phoneRDN').$baseobject->base;
29     $baseobject->dn= $this->dn;
31     foreach ($this->by_object as $key => $obj){
32       $this->by_object[$key]->dn= $this->dn;
33     }
35     tabs::save(TRUE);
36   }
38 }
40 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
41 ?>