original_string: protected static function export_choice_data_for_user(array $choicedata, \context_module $context, \stdClass $user) {
          // Fetch the generic module data for the choice.
          $contextdata = helper::get_context_data($context, $user);
  
          // Merge with choice data and write it.
          $contextdata = (object)array_merge((array)$contextdata, $choicedata);
          writer::with_context($context)->export_data([], $contextdata);
  
          // Write generic module intro files.
          helper::export_context_files($context, $user);
      }
code: protected static function export_choice_data_for_user(array $choicedata, \context_module $context, \stdClass $user) {
          // Fetch the generic module data for the choice.
          $contextdata = helper::get_context_data($context, $user);
  
          // Merge with choice data and write it.
          $contextdata = (object)array_merge((array)$contextdata, $choicedata);
          writer::with_context($context)->export_data([], $contextdata);
  
          // Write generic module intro files.
          helper::export_context_files($context, $user);
      }
code_tokens: protected static function export_choice_data_for_user ( array $ choicedata , \ context_module $ context , \ stdClass $ user ) { // Fetch the generic module data for the choice. $ contextdata = helper :: get_context_data ( $ context , $ user ) ; // Merge with choice data and write it. $ contextdata = ( object ) array_merge ( ( array ) $ contextdata , $ choicedata ) ; writer :: with_context ( $ context ) -> export_data ( [ ] , $ contextdata ) ; // Write generic module intro files. helper :: export_context_files ( $ context , $ user ) ; }
docstring: Export the supplied personal data for a single choice activity, along with any generic data or area files.
  
  @param array $choicedata the personal data to export for the choice.
  @param \context_module $context the context of the choice.
  @param \stdClass $user the user record
docstring_tokens: Export the supplied personal data for a single choice activity along with any generic data or area files .