public function render_progress_bar(progress_bar $bar) {
        global $PAGE;
        $data = $bar->export_for_template($this);
        return $this->render_from_template('core/progress_bar', $data);
    }
public function render_progress_bar(progress_bar $bar) {
        global $PAGE;
        $data = $bar->export_for_template($this);
        return $this->render_from_template('core/progress_bar', $data);
    }
public function render_progress_bar ( progress_bar $ bar ) { global $ PAGE ; $ data = $ bar -> export_for_template ( $ this ) ; return $ this -> render_from_template ( 'core/progress_bar' , $ data ) ; }
Renders a progress bar.

Do not use $OUTPUT->render($bar), instead use progress_bar::create().

@param  progress_bar $bar The bar.
@return string HTML fragment
Renders a progress bar .