original_string: public function delete_data_for_all_users_in_context(\context $context) {
          $progress = static::get_log_tracer();
  
          $components = $this->get_component_list();
          $a = (object) [
              'total' => count($components),
              'progress' => 0,
              'component' => '',
              'datetime' => userdate(time()),
          ];
  
          $progress->output(get_string('trace:deletingcontext', 'core_privacy', $a), 1);
          foreach ($this->get_component_list() as $component) {
              $a->component = $component;
              $a->progress++;
              $a->datetime = userdate(time());
              $progress->output(get_string('trace:processingcomponent', 'core_privacy', $a), 2);
  
              // If this component knows about specific data that it owns,
              // have it delete all of that user data for the context.
              $this->handled_component_class_callback($component, core_user_data_provider::class,
                  'delete_data_for_all_users_in_context', [$context]);
  
              // Delete any shared user data it doesn't know about.
              local\request\helper::delete_data_for_all_users_in_context($component, $context);
          }
          $progress->output(get_string('trace:done', 'core_privacy'), 1);
      }
code: public function delete_data_for_all_users_in_context(\context $context) {
          $progress = static::get_log_tracer();
  
          $components = $this->get_component_list();
          $a = (object) [
              'total' => count($components),
              'progress' => 0,
              'component' => '',
              'datetime' => userdate(time()),
          ];
  
          $progress->output(get_string('trace:deletingcontext', 'core_privacy', $a), 1);
          foreach ($this->get_component_list() as $component) {
              $a->component = $component;
              $a->progress++;
              $a->datetime = userdate(time());
              $progress->output(get_string('trace:processingcomponent', 'core_privacy', $a), 2);
  
              // If this component knows about specific data that it owns,
              // have it delete all of that user data for the context.
              $this->handled_component_class_callback($component, core_user_data_provider::class,
                  'delete_data_for_all_users_in_context', [$context]);
  
              // Delete any shared user data it doesn't know about.
              local\request\helper::delete_data_for_all_users_in_context($component, $context);
          }
          $progress->output(get_string('trace:done', 'core_privacy'), 1);
      }
code_tokens: public function delete_data_for_all_users_in_context ( \ context $ context ) { $ progress = static :: get_log_tracer ( ) ; $ components = $ this -> get_component_list ( ) ; $ a = ( object ) [ 'total' => count ( $ components ) , 'progress' => 0 , 'component' => '' , 'datetime' => userdate ( time ( ) ) , ] ; $ progress -> output ( get_string ( 'trace:deletingcontext' , 'core_privacy' , $ a ) , 1 ) ; foreach ( $ this -> get_component_list ( ) as $ component ) { $ a -> component = $ component ; $ a -> progress ++ ; $ a -> datetime = userdate ( time ( ) ) ; $ progress -> output ( get_string ( 'trace:processingcomponent' , 'core_privacy' , $ a ) , 2 ) ; // If this component knows about specific data that it owns, // have it delete all of that user data for the context. $ this -> handled_component_class_callback ( $ component , core_user_data_provider :: class , 'delete_data_for_all_users_in_context' , [ $ context ] ) ; // Delete any shared user data it doesn't know about. local \ request \ helper :: delete_data_for_all_users_in_context ( $ component , $ context ) ; } $ progress -> output ( get_string ( 'trace:done' , 'core_privacy' ) , 1 ) ; }
docstring: Delete all use data which matches the specified deletion criteria.
  
  @param \context $context The specific context to delete data for.
docstring_tokens: Delete all use data which matches the specified deletion criteria .