1 <?php
3 class wintabs extends tabs
4 {
6 function wintabs($config, $data, $dn)
7 {
8 tabs::tabs($config, $data, $dn);
9 }
11 function save_object($save_current= FALSE)
12 {
13 tabs::save_object($save_current);
14 }
17 function save()
18 {
19 /* Check for new 'dn', in order to propagate the
20 'dn' to all plugins */
22 /* add $ to end of name if mising */
23 $baseobject= $this->by_object['wingeneric'];
24 if(!preg_match("/\\\$\$/",$baseobject->cn)){
25 $baseobject->cn .= "$";
26 }
28 $this->dn= "uid=$baseobject->cn,".get_winstations_ou().$baseobject->base;
29 $baseobject->dn= $this->dn;
31 foreach ($this->by_object as $key => $obj){
32 $this->by_object[$key]->dn= $this->dn;
33 }
35 tabs::save(TRUE);
37 /* Fix tagging if needed */
38 $baseobject->handle_object_tagging();
39 }
41 }
43 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
44 ?>