original_string: protected static function export_read_data(int $userid, \context_module $context, array $postarea, \stdClass $post) {
          if (null !== $post->firstread) {
              $a = (object) [
                  'firstread' => $post->firstread,
                  'lastread'  => $post->lastread,
              ];
  
              writer::with_context($context)
                  ->export_metadata(
                      $postarea,
                      'postread',
                      (object) [
                          'firstread' => $post->firstread,
                          'lastread' => $post->lastread,
                      ],
                      get_string('privacy:postwasread', 'mod_forum', $a)
                  );
  
              return true;
          }
  
          return false;
      }
code: protected static function export_read_data(int $userid, \context_module $context, array $postarea, \stdClass $post) {
          if (null !== $post->firstread) {
              $a = (object) [
                  'firstread' => $post->firstread,
                  'lastread'  => $post->lastread,
              ];
  
              writer::with_context($context)
                  ->export_metadata(
                      $postarea,
                      'postread',
                      (object) [
                          'firstread' => $post->firstread,
                          'lastread' => $post->lastread,
                      ],
                      get_string('privacy:postwasread', 'mod_forum', $a)
                  );
  
              return true;
          }
  
          return false;
      }
code_tokens: protected static function export_read_data ( int $ userid , \ context_module $ context , array $ postarea , \ stdClass $ post ) { if ( null !== $ post -> firstread ) { $ a = ( object ) [ 'firstread' => $ post -> firstread , 'lastread' => $ post -> lastread , ] ; writer :: with_context ( $ context ) -> export_metadata ( $ postarea , 'postread' , ( object ) [ 'firstread' => $ post -> firstread , 'lastread' => $ post -> lastread , ] , get_string ( 'privacy:postwasread' , 'mod_forum' , $ a ) ) ; return true ; } return false ; }
docstring: Store read-tracking information about a particular forum post.
  
  @param   int         $userid The userid of the user whose data is to be exported.
  @param   \context_module $context The instance of the forum context.
  @param   array       $postarea The subcontext for this post.
  @param   \stdClass   $post The post whose data is being exported.
  @return  bool        Whether any data was stored.
docstring_tokens: Store read - tracking information about a particular forum post .