# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. Index: moodle/backup/util/ui/backup_ui.class.php --- moodle/backup/util/ui/backup_ui.class.php Base (1.5) +++ moodle/backup/util/ui/backup_ui.class.php Locally Modified (Based On 1.5) @@ -194,6 +194,16 @@ return $this->stage->get_name(); } /** + * Gets the results from the backup execution + * @return stdClass + */ + public function get_stage_results() { + if ($this->stage->get_stage() !== self::STAGE_COMPLETE){ + throw new backup_ui_exception('invalidbackupstage'); + } + return $this->stage->get_results(); + } + /** \ No newline at end of file * Gets the backup id from the controller * @return string */ Index: moodle/backup/util/ui/backup_ui_stage.class.php --- moodle/backup/util/ui/backup_ui_stage.class.php Base (1.4) +++ moodle/backup/util/ui/backup_ui_stage.class.php Locally Modified (Based On 1.4) @@ -537,4 +537,8 @@ echo $OUTPUT->continue_button($fileurl); echo $OUTPUT->box_end(); } + + public function get_results() { + return $this->results; } +}