original_string: public function process_stage_finished($queued=false) {
          global $OUTPUT;
          $returnurl = $this->caller->get_return_url();
          $continueurl = $this->instance->get_interactive_continue_url();
          $extras = $this->instance->get_extra_finish_options();
  
          $key = 'exportcomplete';
          if ($queued || $this->forcequeue) {
              $key = 'exportqueued';
              if ($this->forcequeue) {
                  $key = 'exportqueuedforced';
              }
          }
          $this->print_header(get_string($key, 'portfolio'), false);
          self::print_finish_info($returnurl, $continueurl, $extras);
          echo $OUTPUT->footer();
          return false;
      }
code: public function process_stage_finished($queued=false) {
          global $OUTPUT;
          $returnurl = $this->caller->get_return_url();
          $continueurl = $this->instance->get_interactive_continue_url();
          $extras = $this->instance->get_extra_finish_options();
  
          $key = 'exportcomplete';
          if ($queued || $this->forcequeue) {
              $key = 'exportqueued';
              if ($this->forcequeue) {
                  $key = 'exportqueuedforced';
              }
          }
          $this->print_header(get_string($key, 'portfolio'), false);
          self::print_finish_info($returnurl, $continueurl, $extras);
          echo $OUTPUT->footer();
          return false;
      }
code_tokens: public function process_stage_finished ( $ queued = false ) { global $ OUTPUT ; $ returnurl = $ this -> caller -> get_return_url ( ) ; $ continueurl = $ this -> instance -> get_interactive_continue_url ( ) ; $ extras = $ this -> instance -> get_extra_finish_options ( ) ; $ key = 'exportcomplete' ; if ( $ queued || $ this -> forcequeue ) { $ key = 'exportqueued' ; if ( $ this -> forcequeue ) { $ key = 'exportqueuedforced' ; } } $ this -> print_header ( get_string ( $ key , 'portfolio' ) , false ) ; self :: print_finish_info ( $ returnurl , $ continueurl , $ extras ) ; echo $ OUTPUT -> footer ( ) ; return false ; }
docstring: Processes the 'finish' stage of the export
  
  @param bool $queued let the process to be queued
  @return bool whether or not to process the next stage. this is important as the control function is called recursively.
docstring_tokens: Processes the finish stage of the export