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 $this->dn= "uid=$baseobject->cn,".get_winstations_ou().$baseobject->base;
32 $baseobject->dn= $this->dn;
34 foreach ($this->by_object as $key => $obj){
35 $this->by_object[$key]->dn= $this->dn;
36 }
38 tabs::save(TRUE);
40 /* Fix tagging if needed */
41 $baseobject->handle_object_tagging();
42 }
44 }
46 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
47 ?>