public function output_html() {
        global $OUTPUT;

        $activetab = optional_param('activetab', '', PARAM_TEXT);
        $context = array('tabs' => array());
        $havesetactive = false;

        foreach ($this->get_tabs() as $tab) {
            $active = false;

            // Default to first tab it not told otherwise.
            if (empty($activetab) && !$havesetactive) {
                $active = true;
                $havesetactive = true;
            } else if ($activetab === $tab->name) {
                $active = true;
            }

            $context['tabs'][] = array(
                'name' => $tab->name,
                'displayname' => $tab->visiblename,
                'html' => $tab->output_html(),
                'active' => $active,
            );
        }

        if (empty($context['tabs'])) {
            return '';
        }

        return $OUTPUT->render_from_template('theme_boost/admin_setting_tabs', $context);
    }
public function output_html() {
        global $OUTPUT;

        $activetab = optional_param('activetab', '', PARAM_TEXT);
        $context = array('tabs' => array());
        $havesetactive = false;

        foreach ($this->get_tabs() as $tab) {
            $active = false;

            // Default to first tab it not told otherwise.
            if (empty($activetab) && !$havesetactive) {
                $active = true;
                $havesetactive = true;
            } else if ($activetab === $tab->name) {
                $active = true;
            }

            $context['tabs'][] = array(
                'name' => $tab->name,
                'displayname' => $tab->visiblename,
                'html' => $tab->output_html(),
                'active' => $active,
            );
        }

        if (empty($context['tabs'])) {
            return '';
        }

        return $OUTPUT->render_from_template('theme_boost/admin_setting_tabs', $context);
    }
public function output_html ( ) { global $ OUTPUT ; $ activetab = optional_param ( 'activetab' , '' , PARAM_TEXT ) ; $ context = array ( 'tabs' => array ( ) ) ; $ havesetactive = false ; foreach ( $ this -> get_tabs ( ) as $ tab ) { $ active = false ; // Default to first tab it not told otherwise. if ( empty ( $ activetab ) && ! $ havesetactive ) { $ active = true ; $ havesetactive = true ; } else if ( $ activetab === $ tab -> name ) { $ active = true ; } $ context [ 'tabs' ] [ ] = array ( 'name' => $ tab -> name , 'displayname' => $ tab -> visiblename , 'html' => $ tab -> output_html ( ) , 'active' => $ active , ) ; } if ( empty ( $ context [ 'tabs' ] ) ) { return '' ; } return $ OUTPUT -> render_from_template ( 'theme_boost/admin_setting_tabs' , $ context ) ; }
Generate the HTML output.

@return string
Generate the HTML output .