original_string: public function execute() {
          if ($this->progress >= self::PROGRESS_EXECUTED) {
              throw new backup_ui_exception('backupuialreadyexecuted');
          }
          if ($this->stage->get_stage() < self::STAGE_FINAL) {
              throw new backup_ui_exception('backupuifinalisedbeforeexecute');
          }
          $this->progress = self::PROGRESS_EXECUTED;
          $this->controller->finish_ui();
          $this->controller->execute_plan();
          $this->stage = new backup_ui_stage_complete($this, $this->stage->get_params(), $this->controller->get_results());
          return true;
      }
code: public function execute() {
          if ($this->progress >= self::PROGRESS_EXECUTED) {
              throw new backup_ui_exception('backupuialreadyexecuted');
          }
          if ($this->stage->get_stage() < self::STAGE_FINAL) {
              throw new backup_ui_exception('backupuifinalisedbeforeexecute');
          }
          $this->progress = self::PROGRESS_EXECUTED;
          $this->controller->finish_ui();
          $this->controller->execute_plan();
          $this->stage = new backup_ui_stage_complete($this, $this->stage->get_params(), $this->controller->get_results());
          return true;
      }
code_tokens: public function execute ( ) { if ( $ this -> progress >= self :: PROGRESS_EXECUTED ) { throw new backup_ui_exception ( 'backupuialreadyexecuted' ) ; } if ( $ this -> stage -> get_stage ( ) < self :: STAGE_FINAL ) { throw new backup_ui_exception ( 'backupuifinalisedbeforeexecute' ) ; } $ this -> progress = self :: PROGRESS_EXECUTED ; $ this -> controller -> finish_ui ( ) ; $ this -> controller -> execute_plan ( ) ; $ this -> stage = new backup_ui_stage_complete ( $ this , $ this -> stage -> get_params ( ) , $ this -> controller -> get_results ( ) ) ; return true ; }
docstring: Executes the backup plan
  @throws backup_ui_exception when the steps are wrong.
  @return bool
docstring_tokens: Executes the backup plan