original_string: public function process_autosave($submitteddata, $timestamp = null, $userid = null) {
          $pendingstep = new question_attempt_pending_step($submitteddata, $timestamp, $userid);
          if ($this->behaviour->process_autosave($pendingstep) == self::KEEP) {
              $this->add_autosaved_step($pendingstep);
              return true;
          }
          return false;
      }
code: public function process_autosave($submitteddata, $timestamp = null, $userid = null) {
          $pendingstep = new question_attempt_pending_step($submitteddata, $timestamp, $userid);
          if ($this->behaviour->process_autosave($pendingstep) == self::KEEP) {
              $this->add_autosaved_step($pendingstep);
              return true;
          }
          return false;
      }
code_tokens: public function process_autosave ( $ submitteddata , $ timestamp = null , $ userid = null ) { $ pendingstep = new question_attempt_pending_step ( $ submitteddata , $ timestamp , $ userid ) ; if ( $ this -> behaviour -> process_autosave ( $ pendingstep ) == self :: KEEP ) { $ this -> add_autosaved_step ( $ pendingstep ) ; return true ; } return false ; }
docstring: Process an autosave.
  @param array $submitteddata the submitted data the determines the action.
  @param int $timestamp the time to record for the action. (If not given, use now.)
  @param int $userid the user to attribute the action to. (If not given, use the current user.)
  @return bool whether anything was saved.
docstring_tokens: Process an autosave .