index 74e474abc48a1e8943d6a51c6d66ca77bc338c52..5f5e47eea73c66a797388caf6ad1245446d9e24a 100644 (file)
function termtabs($config, $data, $dn)
{
- tabs::tabs($config, $data, $dn);
+ /* Save dn */
+ $this->dn= $dn;
+ $this->config= $config;
+
+ 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']]->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']]->parent= &$this;
+ }
+ /* Initialize current */
+ if ($this->current == ""){
+ $this->current= $tab['CLASS'];
+ }
+ }
}
function save_object($save_current= FALSE)