protected function render_reset_button() {

        if (!$this->can_be_reset()) {
            return '';
        }

        $url = $this->baseurl->out(false, array($this->request[TABLE_VAR_RESET] => 1));

        $html  = html_writer::start_div('resettable mdl-right');
        $html .= html_writer::link($url, get_string('resettable'));
        $html .= html_writer::end_div();

        return $html;
    }
protected function render_reset_button() {

        if (!$this->can_be_reset()) {
            return '';
        }

        $url = $this->baseurl->out(false, array($this->request[TABLE_VAR_RESET] => 1));

        $html  = html_writer::start_div('resettable mdl-right');
        $html .= html_writer::link($url, get_string('resettable'));
        $html .= html_writer::end_div();

        return $html;
    }
protected function render_reset_button ( ) { if ( ! $ this -> can_be_reset ( ) ) { return '' ; } $ url = $ this -> baseurl -> out ( false , array ( $ this -> request [ TABLE_VAR_RESET ] => 1 ) ) ; $ html = html_writer :: start_div ( 'resettable mdl-right' ) ; $ html .= html_writer :: link ( $ url , get_string ( 'resettable' ) ) ; $ html .= html_writer :: end_div ( ) ; return $ html ; }
Generate the HTML for the table preferences reset button.

@return string HTML fragment, empty string if no need to reset
Generate the HTML for the table preferences reset button .