c884fed956e29cc902f3d68e33ad525cbc1e613b
1 <?php
3 class apptabs extends tabs
4 {
6 function apptabs($config, $data, $dn)
7 {
8 tabs::tabs($config, $data, $dn);
9 }
11 function save()
12 {
13 $baseobject= $this->by_object['application'];
15 /* Check for new 'dn', in order to propagate the
16 'dn' to all plugins */
17 $new_dn= "cn=".$baseobject->cn.",ou=apps,".$baseobject->base;
19 /* Move group? */
20 if ($this->dn != $new_dn){
22 /* Write entry on new 'dn' */
23 if ($this->dn != "new"){
24 $baseobject->move($this->dn, $new_dn);
25 $this->by_object['application']= $baseobject;
26 }
28 /* Happen to use the new one */
29 $this->dn= $new_dn;
30 }
32 tabs::save();
33 }
35 }
37 ?>