original_string: public static function mute_conversation(int $userid, int $conversationid) : void {
          global $DB;
  
          $mutedconversation = new \stdClass();
          $mutedconversation->userid = $userid;
          $mutedconversation->conversationid = $conversationid;
          $mutedconversation->action = self::CONVERSATION_ACTION_MUTED;
          $mutedconversation->timecreated = time();
  
          $DB->insert_record('message_conversation_actions', $mutedconversation);
      }
code: public static function mute_conversation(int $userid, int $conversationid) : void {
          global $DB;
  
          $mutedconversation = new \stdClass();
          $mutedconversation->userid = $userid;
          $mutedconversation->conversationid = $conversationid;
          $mutedconversation->action = self::CONVERSATION_ACTION_MUTED;
          $mutedconversation->timecreated = time();
  
          $DB->insert_record('message_conversation_actions', $mutedconversation);
      }
code_tokens: public static function mute_conversation ( int $ userid , int $ conversationid ) : void { global $ DB ; $ mutedconversation = new \ stdClass ( ) ; $ mutedconversation -> userid = $ userid ; $ mutedconversation -> conversationid = $ conversationid ; $ mutedconversation -> action = self :: CONVERSATION_ACTION_MUTED ; $ mutedconversation -> timecreated = time ( ) ; $ DB -> insert_record ( 'message_conversation_actions' , $ mutedconversation ) ; }
docstring: Handles muting a conversation.
  
  @param int $userid The id of the user
  @param int $conversationid The id of the conversation
docstring_tokens: Handles muting a conversation .