1 <?php
3 class apptabs extends tabs
4 {
5 var $parent = FALSE;
6 var $FAIstate = "";
8 function apptabs($config, $data, $dn,$category,$hide_refs = FALSE, $hide_acls = FALSE)
9 {
10 tabs::tabs($config, $data, $dn,$category,$hide_refs, $hide_acls);
12 /* Add references/acls/snapshots */
13 $this->addSpecialTabs();
14 }
16 function set_FAIstate($state)
17 {
18 $this->FAIstate = $state;
19 foreach($this->by_name as $name => $desc){
20 $this->by_object[$name]->FAIstate = $state;
21 }
22 }
24 function save($ignore_account= FALSE)
25 {
26 $baseobject= $this->by_object['application'];
28 /* Check for new 'dn', in order to propagate the
29 'dn' to all plugins */
30 if($baseobject->parent->parent->IsReleaseManagementActivated()){
31 $new_dn= "cn=".$baseobject->cn.",".$baseobject->parent->parent->app_release;
32 }else{
33 $new_dn= "cn=".$baseobject->cn.",".get_ou('applicationRDN').$baseobject->base;
34 }
36 // Do we have to move the object?
37 if ($this->dn != $new_dn){
38 if ($this->dn != "new"){
39 $baseobject->move($this->dn, $new_dn);
40 $this->by_object['application']= $baseobject;
41 }
42 $this->dn= $new_dn;
43 }
45 tabs::save();
46 }
48 }
49 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
50 ?>