public function add_tab(admin_settingpage $tab) {
        foreach ($tab->settings as $setting) {
            $this->settings->{$setting->name} = $setting;
        }
        $this->tabs[] = $tab;
        return true;
    }
public function add_tab(admin_settingpage $tab) {
        foreach ($tab->settings as $setting) {
            $this->settings->{$setting->name} = $setting;
        }
        $this->tabs[] = $tab;
        return true;
    }
public function add_tab ( admin_settingpage $ tab ) { foreach ( $ tab -> settings as $ setting ) { $ this -> settings -> { $ setting -> name } = $ setting ; } $ this -> tabs [ ] = $ tab ; return true ; }
Add a tab.

@param admin_settingpage $tab A tab.
Add a tab .