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);
    }
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);
    }
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 ) ; }
Enable a conversation.

@param int $conversationid The id of the conversation.
@return void
Enable a conversation .