1 <?php
3 class devicetabs extends tabs
4 {
5 var $Release= "";
7 function devicetabs($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['deviceGeneric'];
18 $new_dn= "cn=".$baseobject->cn.",".get_ou('deviceRDN').$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['deviceGeneric']= $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 ?>