1 <?php
3 class componenttabs extends tabs
4 {
6 function componenttabs($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);
18 $baseobject = $this->by_object['componentGeneric'];
19 $baseobject->netConfigDNS->cn= $baseobject->cn;
20 }
23 function save($ignore_account= FALSE)
24 {
25 /* Check for new 'dn', in order to propagate the
26 'dn' to all plugins */
27 $baseobject= $this->by_object['componentGeneric'];
28 $this->dn= "cn=$baseobject->cn,".get_ou('componentou').$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);
36 }
38 }
40 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
41 ?>