1 <?php
3 class apptabs extends tabs
4 {
5 var $Release= "";
7 function apptabs($config, $data, $dn)
8 {
9 tabs::tabs($config, $data, $dn);
10 }
12 function set_release($newRelease)
13 {
14 $this->Release= preg_replace('/,ou=apps,.*$/', '', $newRelease);
15 if ($this->Release != ""){
16 $this->Release= ",".$this->Release;
17 }
18 }
20 function save()
21 {
22 $baseobject= $this->by_object['application'];
24 /* Check for new 'dn', in order to propagate the
25 'dn' to all plugins */
26 $new_dn= "cn=".$baseobject->cn.$this->Release.",ou=apps,".$baseobject->base;
28 /* Move group? */
29 if ($this->dn != $new_dn){
31 /* Write entry on new 'dn' */
32 if ($this->dn != "new"){
33 $baseobject->move($this->dn, $new_dn);
34 $this->by_object['application']= $baseobject;
35 }
37 /* Happen to use the new one */
38 $this->dn= $new_dn;
39 }
41 tabs::save();
42 }
44 }
46 ?>