/** * Displays this stage * * @throws base_ui_exception if the progress is wrong. * @param core_backup_renderer $renderer * @return string HTML code to echo */ public function display(core_backup_renderer $renderer) { if ($this->progress < self::PROGRESS_SAVED) { throw new base_ui_exception('backupsavebeforedisplay'); } return $this->stage->display($renderer); }
/** * Constructs the final stage * @param base_ui $ui * @param array $params */ public function __construct(base_ui $ui, array $params = null) { $this->stage = restore_ui::STAGE_PROCESS; parent::__construct($ui, $params); }