original_string: protected static function delete_user_data(int $userid) {
          global $DB;
  
          // Delete individual conversations information for this user.
          self::delete_user_data_conversations($userid, [], '', '');
  
          // Delete contacts, requests, users blocked and notifications.
          $DB->delete_records_select('message_contacts', 'userid = ? OR contactid = ?', [$userid, $userid]);
          $DB->delete_records_select('message_contact_requests', 'userid = ? OR requesteduserid = ?', [$userid, $userid]);
          $DB->delete_records_select('message_users_blocked', 'userid = ? OR blockeduserid = ?', [$userid, $userid]);
          $DB->delete_records_select('notifications', 'useridfrom = ? OR useridto = ?', [$userid, $userid]);
      }
code: protected static function delete_user_data(int $userid) {
          global $DB;
  
          // Delete individual conversations information for this user.
          self::delete_user_data_conversations($userid, [], '', '');
  
          // Delete contacts, requests, users blocked and notifications.
          $DB->delete_records_select('message_contacts', 'userid = ? OR contactid = ?', [$userid, $userid]);
          $DB->delete_records_select('message_contact_requests', 'userid = ? OR requesteduserid = ?', [$userid, $userid]);
          $DB->delete_records_select('message_users_blocked', 'userid = ? OR blockeduserid = ?', [$userid, $userid]);
          $DB->delete_records_select('notifications', 'useridfrom = ? OR useridto = ?', [$userid, $userid]);
      }
code_tokens: protected static function delete_user_data ( int $ userid ) { global $ DB ; // Delete individual conversations information for this user. self :: delete_user_data_conversations ( $ userid , [ ] , '' , '' ) ; // Delete contacts, requests, users blocked and notifications. $ DB -> delete_records_select ( 'message_contacts' , 'userid = ? OR contactid = ?' , [ $ userid , $ userid ] ) ; $ DB -> delete_records_select ( 'message_contact_requests' , 'userid = ? OR requesteduserid = ?' , [ $ userid , $ userid ] ) ; $ DB -> delete_records_select ( 'message_users_blocked' , 'userid = ? OR blockeduserid = ?' , [ $ userid , $ userid ] ) ; $ DB -> delete_records_select ( 'notifications' , 'useridfrom = ? OR useridto = ?' , [ $ userid , $ userid ] ) ; }
docstring: Delete all user data for the specified user.
  
  @param int $userid The user id
docstring_tokens: Delete all user data for the specified user .