Code

Updated application acls
[gosa.git] / gosa-plugins / goto / admin / applications / tabs_application.inc
1 <?php
3 class apptabs extends tabs
4 {
5   var $parent = FALSE;
7   function apptabs($config, $data, $dn,$category)
8   {
9     tabs::tabs($config, $data, $dn,$category);
11     /* Add references/acls/snapshots */
12     $this->addSpecialTabs();
13   }
15   function save($ignore_account= FALSE)
16   {
17     $baseobject= $this->by_object['application'];
19     /* Check for new 'dn', in order to propagate the
20        'dn' to all plugins */
21     if($this->parent->IsReleaseManagementActivated()){
22       $new_dn= "cn=".$baseobject->cn.",".$this->parent->app_release;
23     }else{
24       $new_dn= "cn=".$baseobject->cn.",".get_ou('applicationou').$baseobject->base;
25     }
27     /* Move group? */
28     if ($this->dn != $new_dn){
30       /* Write entry on new 'dn' */
31       if ($this->dn != "new"){
32         $baseobject->move($this->dn, $new_dn);
33         $this->by_object['application']= $baseobject;
34       }
36       /* Happen to use the new one */
37       $this->dn= $new_dn;
38     }
40     tabs::save();
41   }
43 }
44 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
45 ?>