예제 #1
0
 /**
  * Displays the UI for the backup!
  *
  * Note: The UI makes use of mforms (ewww!) thus it will automatically print
  * out the result rather than returning a string of HTML like other parts of Moodle
  *
  * @return bool
  */
 public function display()
 {
     if ($this->progress < self::PROGRESS_SAVED) {
         throw new base_ui_exception('backupsavebeforedisplay');
     }
     $this->stage->display();
 }
예제 #2
0
 /**
  * Displays the UI for the backup!
  *
  * @throws base_ui_exception
  * @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);
 }