original_string: public function process_stage_queueorwait() {
          global $DB;
  
          $wait = $this->instance->get_export_config('wait');
          if (empty($wait)) {
              $DB->set_field('portfolio_tempdata', 'queued', 1, array('id' => $this->id));
              $this->queued = true;
              return $this->process_stage_finished(true);
          }
          return true;
      }
code: public function process_stage_queueorwait() {
          global $DB;
  
          $wait = $this->instance->get_export_config('wait');
          if (empty($wait)) {
              $DB->set_field('portfolio_tempdata', 'queued', 1, array('id' => $this->id));
              $this->queued = true;
              return $this->process_stage_finished(true);
          }
          return true;
      }
code_tokens: public function process_stage_queueorwait ( ) { global $ DB ; $ wait = $ this -> instance -> get_export_config ( 'wait' ) ; if ( empty ( $ wait ) ) { $ DB -> set_field ( 'portfolio_tempdata' , 'queued' , 1 , array ( 'id' => $ this -> id ) ) ; $ this -> queued = true ; return $ this -> process_stage_finished ( true ) ; } return true ; }
docstring: Processes the 'queueornext' stage of the export
  
  @return bool whether or not to process the next stage. this is important as the control function is called recursively.
docstring_tokens: Processes the queueornext stage of the export