Code

Moved folder images
[gosa.git] / gosa-plugins / gofax / gofax / blocklists / tabs_blocklist.inc
1 <?php
3 class faxblocktabs extends tabs
4 {
5   function faxblocktabs($config, $data, $dn)
6   {
7     tabs::tabs($config, $data, $dn, 'gofaxlist');
9     /* Add references/acls/snapshots */
10     $this->addSpecialTabs();
11   }
13   function save($ignore_account= FALSE)
14   {
15     $baseobject= $this->by_object['blocklistGeneric'];
17     /* Check for new 'dn', in order to propagate the 'dn' to all plugins */
18     $new_dn= "cn=".$baseobject->cn.",".get_ou('blocklistou').$baseobject->base;
20     /* Move group? */
21     if ($this->dn != $new_dn){
23       /* Write entry on new 'dn' */
24       if ($this->dn != "new"){
25         $baseobject->move($this->dn, $new_dn);
26         $this->by_object['blocklistGeneric']= $baseobject;
27       }
29       /* Happen to use the new one */
30       $this->dn= $new_dn;
31     }
33     tabs::save();
34   }
36 }
37 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
38 ?>