Code

Shrinked down aclRole class to half size.
[gosa.git] / plugins / gofon / macro / tabs_macros.inc
1 <?php
3 class macrotabs extends tabs
4 {
6   function macrotabs($config, $data, $dn,$category)
7   {
8           tabs::tabs($config, $data, $dn,$category);
10           /* Add references/acls/snapshots */
11           $this->addSpecialTabs();
12   }
14   function save()
15   {
16         $baseobject= $this->by_object['macro'];
18         /* Check for new 'dn', in order to propagate the
19            'dn' to all plugins */
20         $new_dn= "cn=".$baseobject->cn.",ou=macros,ou=asterisk,ou=configs,ou=systems,".$baseobject->base;
22         /* Move group? */
23         if ($this->dn != $new_dn){
25                 /* Write entry on new 'dn' */
26                 if ($this->dn != "new"){
27                         $baseobject->move($this->dn, $new_dn);
28                         $this->by_object['macro']= $baseobject;
29                 }
31                 /* Happen to use the new one */
32                 $this->dn= $new_dn;
33         }
34                 
35         tabs::save();
36   }
38 }
40 ?>