original_string: protected static function export_submission_data(\stdClass $submission, \context $context, array $currentpath) {
          $submissiondata = (object)[
              'timecreated' => transform::datetime($submission->timecreated),
              'timemodified' => transform::datetime($submission->timemodified),
              'status' => get_string('submissionstatus_' . $submission->status, 'mod_assign'),
              'groupid' => $submission->groupid,
              'attemptnumber' => ($submission->attemptnumber + 1),
              'latest' => transform::yesno($submission->latest)
          ];
          writer::with_context($context)
                  ->export_data(array_merge($currentpath, [get_string('privacy:submissionpath', 'mod_assign')]), $submissiondata);
      }
code: protected static function export_submission_data(\stdClass $submission, \context $context, array $currentpath) {
          $submissiondata = (object)[
              'timecreated' => transform::datetime($submission->timecreated),
              'timemodified' => transform::datetime($submission->timemodified),
              'status' => get_string('submissionstatus_' . $submission->status, 'mod_assign'),
              'groupid' => $submission->groupid,
              'attemptnumber' => ($submission->attemptnumber + 1),
              'latest' => transform::yesno($submission->latest)
          ];
          writer::with_context($context)
                  ->export_data(array_merge($currentpath, [get_string('privacy:submissionpath', 'mod_assign')]), $submissiondata);
      }
code_tokens: protected static function export_submission_data ( \ stdClass $ submission , \ context $ context , array $ currentpath ) { $ submissiondata = ( object ) [ 'timecreated' => transform :: datetime ( $ submission -> timecreated ) , 'timemodified' => transform :: datetime ( $ submission -> timemodified ) , 'status' => get_string ( 'submissionstatus_' . $ submission -> status , 'mod_assign' ) , 'groupid' => $ submission -> groupid , 'attemptnumber' => ( $ submission -> attemptnumber + 1 ) , 'latest' => transform :: yesno ( $ submission -> latest ) ] ; writer :: with_context ( $ context ) -> export_data ( array_merge ( $ currentpath , [ get_string ( 'privacy:submissionpath' , 'mod_assign' ) ] ) , $ submissiondata ) ; }
docstring: Formats and then exports the user's submission data.
  
  @param  \stdClass $submission The assign submission object
  @param  \context $context The context object
  @param  array $currentpath Current directory path that we are exporting to.
docstring_tokens: Formats and then exports the user s submission data .