original_string: public static function export_data_for_null_provider(approved_contextlist $contextlist) {
          $user = $contextlist->get_user();
          foreach ($contextlist as $context) {
              $data = static::get_context_data($context, $user);
              static::export_context_files($context, $user);
  
              writer::with_context($context)->export_data([], $data);
          }
      }
code: public static function export_data_for_null_provider(approved_contextlist $contextlist) {
          $user = $contextlist->get_user();
          foreach ($contextlist as $context) {
              $data = static::get_context_data($context, $user);
              static::export_context_files($context, $user);
  
              writer::with_context($context)->export_data([], $data);
          }
      }
code_tokens: public static function export_data_for_null_provider ( approved_contextlist $ contextlist ) { $ user = $ contextlist -> get_user ( ) ; foreach ( $ contextlist as $ context ) { $ data = static :: get_context_data ( $ context , $ user ) ; static :: export_context_files ( $ context , $ user ) ; writer :: with_context ( $ context ) -> export_data ( [ ] , $ data ) ; } }
docstring: Handle export of standard data for a plugin which implements the null provider and does not normally store data
  of its own.
  
  This is used in cases such as activities like mod_resource, which do not store their own data, but may still have
  data on them (like Activity Completion).
  
  Any context provided in a contextlist should have base data exported as a minimum.
  
  @param   approved_contextlist    $contextlist    The approved contexts to export information for.
docstring_tokens: Handle export of standard data for a plugin which implements the null provider and does not normally store data of its own .