public function print_continue() {
        global $CFG, $OUTPUT;

        debugging('function grade_export::print_continue is deprecated.', DEBUG_DEVELOPER);
        $params = $this->get_export_params();

        echo $OUTPUT->heading(get_string('export', 'grades'));

        echo $OUTPUT->container_start('gradeexportlink');

        if (!$this->userkey) {
            // This button should trigger a download prompt.
            $url = new moodle_url('/grade/export/'.$this->plugin.'/export.php', $params);
            echo $OUTPUT->single_button($url, get_string('download', 'admin'));

        } else {
            $paramstr = '';
            $sep = '?';
            foreach($params as $name=>$value) {
                $paramstr .= $sep.$name.'='.$value;
                $sep = '&';
            }

            $link = $CFG->wwwroot.'/grade/export/'.$this->plugin.'/dump.php'.$paramstr.'&key='.$this->userkey;

            echo get_string('download', 'admin').': ' . html_writer::link($link, $link);
        }
        echo $OUTPUT->container_end();

        return;
    }
public function print_continue() {
        global $CFG, $OUTPUT;

        debugging('function grade_export::print_continue is deprecated.', DEBUG_DEVELOPER);
        $params = $this->get_export_params();

        echo $OUTPUT->heading(get_string('export', 'grades'));

        echo $OUTPUT->container_start('gradeexportlink');

        if (!$this->userkey) {
            // This button should trigger a download prompt.
            $url = new moodle_url('/grade/export/'.$this->plugin.'/export.php', $params);
            echo $OUTPUT->single_button($url, get_string('download', 'admin'));

        } else {
            $paramstr = '';
            $sep = '?';
            foreach($params as $name=>$value) {
                $paramstr .= $sep.$name.'='.$value;
                $sep = '&';
            }

            $link = $CFG->wwwroot.'/grade/export/'.$this->plugin.'/dump.php'.$paramstr.'&key='.$this->userkey;

            echo get_string('download', 'admin').': ' . html_writer::link($link, $link);
        }
        echo $OUTPUT->container_end();

        return;
    }
public function print_continue ( ) { global $ CFG , $ OUTPUT ; debugging ( 'function grade_export::print_continue is deprecated.' , DEBUG_DEVELOPER ) ; $ params = $ this -> get_export_params ( ) ; echo $ OUTPUT -> heading ( get_string ( 'export' , 'grades' ) ) ; echo $ OUTPUT -> container_start ( 'gradeexportlink' ) ; if ( ! $ this -> userkey ) { // This button should trigger a download prompt. $ url = new moodle_url ( '/grade/export/' . $ this -> plugin . '/export.php' , $ params ) ; echo $ OUTPUT -> single_button ( $ url , get_string ( 'download' , 'admin' ) ) ; } else { $ paramstr = '' ; $ sep = '?' ; foreach ( $ params as $ name => $ value ) { $ paramstr .= $ sep . $ name . '=' . $ value ; $ sep = '&' ; } $ link = $ CFG -> wwwroot . '/grade/export/' . $ this -> plugin . '/dump.php' . $ paramstr . '&key=' . $ this -> userkey ; echo get_string ( 'download' , 'admin' ) . ': ' . html_writer :: link ( $ link , $ link ) ; } echo $ OUTPUT -> container_end ( ) ; return ; }
Either prints a "Export" box, which will redirect the user to the download page,
or prints the URL for the published data.

@deprecated since 2.8 MDL-46548. Call get_export_url and set the
action of the grade_export_form instead.
@return void
Either prints a Export box which will redirect the user to the download page or prints the URL for the published data .