index 2bc8db0bfd1f2d5282620010bf0264abdd3a1511..7614608df23260c774ddd2ec788bb64b1b486e51 100644 (file)
class termtabs extends tabs
{
- function termtabs($config, $data, $dn)
+ function termtabs($config, $data, $dn, $category)
{
/* Save dn */
$this->dn= $dn;
foreach ($data as $tab){
if($tab['CLASS'] == "printgeneric"){
$this->by_name[$tab['CLASS']]= $tab['NAME'];
- $this->by_object[$tab['CLASS']]= new $tab['CLASS']($this->config, $this->dn,$this);
+ $this->by_object[$tab['CLASS']]= new $tab['CLASS']($this->config, $this->dn, $category);
$this->by_object[$tab['CLASS']]->parent= &$this;
}else{
$this->by_name[$tab['CLASS']]= $tab['NAME'];
- $this->by_object[$tab['CLASS']]= new $tab['CLASS']($this->config, $this->dn);
+ $this->by_object[$tab['CLASS']]= new $tab['CLASS']($this->config, $this->dn, $category);
$this->by_object[$tab['CLASS']]->parent= &$this;
}
/* Initialize current */
$this->current= $tab['CLASS'];
}
}
+
+ /* Add references/acls/snapshots */
+ $this->addSpecialTabs();
}
function save_object($save_current= FALSE)
}
tabs::save(TRUE);
- if(($this->by_object['printgeneric']->is_account==false)&&($this->by_object['printgeneric']->initially_was_account==true)){
- $this->by_object['printgeneric']->remove_from_parent();
+ if(isset($this->by_object['printgeneric'])){
+ if(($this->by_object['printgeneric']->is_account==false)&&($this->by_object['printgeneric']->initially_was_account==true)){
+ $this->by_object['printgeneric']->remove_from_parent();
+ }
}
/* Fix tagging if needed */