1 <?php
3 class worktabs extends tabs
4 {
6 function worktabs($config, $data, $dn)
7 {
8 tabs::tabs($config, $data, $dn);
9 }
11 function save_object($save_current= FALSE)
12 {
13 echo "Take care of the l attribute. It needs to be synced in case of workstations.";
14 tabs::save_object($save_current);
15 }
18 function save()
19 {
20 /* Check for new 'dn', in order to propagate the
21 'dn' to all plugins */
22 $baseobject= $this->by_object['workgeneric'];
23 $this->dn= "cn=".$baseobject->cn.",ou=workstations,ou=systems,".$baseobject->base;
25 foreach ($this->by_object as $key => $obj){
26 $this->by_object[$key]->dn= $this->dn;
27 $this->by_object[$key]->cn= $baseobject->cn;
28 }
30 tabs::save(TRUE);
31 if(($this->by_object['printgeneric']->is_account==false)&&($this->by_object['printgeneric']->initially_was_account==true)){
32 $this->by_object['printgeneric']->remove_from_parent();
33 }
35 }
37 }
39 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
40 ?>