Code

Updated repository template
[gosa.git] / gosa-plugins / gofon / gofon / conference / tabs_conference.inc
1 <?php
3 class conferencetabs extends tabs
4 {
5   var $base= "";
7   function conferencetabs($config, $data, $dn, $category)
8   {
9           tabs::tabs($config, $data, $dn,$category);
10           $this->base= $this->by_object['conference']->base; 
12     /* Add references/acls/snapshots */
13     $this->addSpecialTabs();
14   }
16   function check($ignore_account= FALSE)
17   {
18         return (tabs::check(TRUE));
19   }
20   
22   function save($ignore_account= FALSE)
23   {
24         $baseobject= $this->by_object['conference'];
25         $new_dn= 'cn='.$baseobject->cn.','.get_ou('phoneConferenceRDN').$baseobject->base;
27         if(strtolower($this->dn)==strtolower($new_dn)){
28                 $this->dn=$new_dn;
29         }
31         if($this->dn != $new_dn && $this->dn != "new"){
32                 $baseobject->recursive_move($this->dn, $new_dn);
33         }
34         $this->dn= $new_dn;
36         tabs::save(TRUE);
37   }
39 }
41 ?>