original_string: public static function enable_conversation(int $conversationid) {
          global $DB;
  
          $conversation = new \stdClass();
          $conversation->id = $conversationid;
          $conversation->enabled = self::MESSAGE_CONVERSATION_ENABLED;
          $conversation->timemodified = time();
          $DB->update_record('message_conversations', $conversation);
      }
code: public static function enable_conversation(int $conversationid) {
          global $DB;
  
          $conversation = new \stdClass();
          $conversation->id = $conversationid;
          $conversation->enabled = self::MESSAGE_CONVERSATION_ENABLED;
          $conversation->timemodified = time();
          $DB->update_record('message_conversations', $conversation);
      }
code_tokens: public static function enable_conversation ( int $ conversationid ) { global $ DB ; $ conversation = new \ stdClass ( ) ; $ conversation -> id = $ conversationid ; $ conversation -> enabled = self :: MESSAGE_CONVERSATION_ENABLED ; $ conversation -> timemodified = time ( ) ; $ DB -> update_record ( 'message_conversations' , $ conversation ) ; }
docstring: Enable a conversation.
  
  @param int $conversationid The id of the conversation.
  @return void
docstring_tokens: Enable a conversation .