original_string: public static function delete_data_for_userlist(\core_privacy\local\request\approved_userlist $userlist) {
          global $DB;
          list($sql, $params) = static::get_sql_where_from_contexts([$userlist->get_context()]);
          if (empty($sql)) {
              return;
          }
          list($usersql, $userparams) = $DB->get_in_or_equal($userlist->get_userids(), SQL_PARAMS_NAMED);
          $params = array_merge($params, $userparams);
          $DB->delete_records_select('log', "$sql AND userid $usersql", $params);
      }
code: public static function delete_data_for_userlist(\core_privacy\local\request\approved_userlist $userlist) {
          global $DB;
          list($sql, $params) = static::get_sql_where_from_contexts([$userlist->get_context()]);
          if (empty($sql)) {
              return;
          }
          list($usersql, $userparams) = $DB->get_in_or_equal($userlist->get_userids(), SQL_PARAMS_NAMED);
          $params = array_merge($params, $userparams);
          $DB->delete_records_select('log', "$sql AND userid $usersql", $params);
      }
code_tokens: public static function delete_data_for_userlist ( \ core_privacy \ local \ request \ approved_userlist $ userlist ) { global $ DB ; list ( $ sql , $ params ) = static :: get_sql_where_from_contexts ( [ $ userlist -> get_context ( ) ] ) ; if ( empty ( $ sql ) ) { return ; } list ( $ usersql , $ userparams ) = $ DB -> get_in_or_equal ( $ userlist -> get_userids ( ) , SQL_PARAMS_NAMED ) ; $ params = array_merge ( $ params , $ userparams ) ; $ DB -> delete_records_select ( 'log' , "$sql AND userid $usersql" , $ params ) ; }
docstring: Delete all data for a list of users in the specified context.
  
  @param \core_privacy\local\request\approved_userlist $userlist The specific context and users to delete data for.
  @return void
docstring_tokens: Delete all data for a list of users in the specified context .