Code

Added branches container for old stuff
[gosa.git] / gosa-plugins / samba / admin / systems / samba / tabs_winstation.inc
1 <?php
3 class wintabs extends tabs
4 {
6   function wintabs($config, $data, $dn,$category)
7   {
8     tabs::tabs($config, $data, $dn,$category);
10     /* Add references/acls/snapshots */
11     $this->addSpecialTabs();
12   }
14   function save_object($save_current= FALSE)
15   {
16     tabs::save_object($save_current);
17   }
20   function save($ignore_account= FALSE)
21   {
22     /* Check for new 'dn', in order to propagate the
23        'dn' to all plugins */
25     /* add $ to end of name if mising */
26     $baseobject= $this->by_object['wingeneric'];
27     if(!preg_match("/\\\$\$/",$baseobject->cn)){
28       $baseobject->cn .= "$";
29     }
31     /* Save this system with uid and NOT cn */
32     $this->dn= "uid=$baseobject->uid,".get_winstations_ou().$baseobject->base;
33     $baseobject->dn= $this->dn;
35     foreach ($this->by_object as $key => $obj){
36       $this->by_object[$key]->dn= $this->dn;
37     }
39     tabs::save(TRUE);
40   }
42 }
44 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
45 ?>