public function display(core_backup_renderer $renderer) {

        $form = $this->initialise_stage_form();
        // A nasty hack follows to work around the sad fact that moodle quickforms
        // do not allow to actually return the HTML content, just to echo it.
        flush();
        ob_start();
        $form->display();
        $output = ob_get_contents();
        ob_end_clean();

        return $output;
    }
public function display(core_backup_renderer $renderer) {

        $form = $this->initialise_stage_form();
        // A nasty hack follows to work around the sad fact that moodle quickforms
        // do not allow to actually return the HTML content, just to echo it.
        flush();
        ob_start();
        $form->display();
        $output = ob_get_contents();
        ob_end_clean();

        return $output;
    }
public function display ( core_backup_renderer $ renderer ) { $ form = $ this -> initialise_stage_form ( ) ; // A nasty hack follows to work around the sad fact that moodle quickforms // do not allow to actually return the HTML content, just to echo it. flush ( ) ; ob_start ( ) ; $ form -> display ( ) ; $ output = ob_get_contents ( ) ; ob_end_clean ( ) ; return $ output ; }
Displays the stage.

By default this involves instantiating the form for the stage and the calling
it to display.

@param core_backup_renderer $renderer
@return string HTML code to echo
Displays the stage .