MDL-13114 tool_uploadcourse: Output tracker in place

This commit is contained in:
Frederic Massart
2013-07-15 10:02:55 +08:00
parent f54c49ccf0
commit 5dcd7e2867
3 changed files with 46 additions and 10 deletions
+8 -1
View File
@@ -121,8 +121,15 @@ class tool_uploadcourse_tracker {
);
if ($this->outputmode == self::OUTPUT_PLAIN) {
foreach ($message as $msg) {
$this->buffer->output($msg);
}
} else if ($this->outputmode == self::OUTPUT_HTML) {
echo html_writer::end_tag('table');
$buffer = new progress_trace_buffer(new html_list_progress_trace());
foreach ($message as $msg) {
$buffer->output($msg);
}
$buffer->finished();
}
}