chat_room_edit (public, deprecated)

 chat_room_edit room_id pretty_name description moderated_p active_p \
    archive_p auto_flush_p auto_transcript_p login_messages_p \
    logout_messages_p messages_time_window avatar_p

Defined in packages/chat/tcl/chat-procs.tcl

Deprecated. Invoking this procedure generates a warning.

Edit information on chat room. All information require.

Parameters:
room_id
pretty_name
description
moderated_p
active_p
archive_p
auto_flush_p
auto_transcript_p
login_messages_p
logout_messages_p
messages_time_window
avatar_p

See Also:
  • xo::db::chat_room

Partial Call Graph (max 5 caller/called nodes):
%3 ad_get_tcl_call_stack ad_get_tcl_call_stack (public) chat_room_edit chat_room_edit chat_room_edit->ad_get_tcl_call_stack

Testcases:
No testcase defined.
Source code:
ns_log Notice "Deprecated proc chat_room_edit used:\n[ad_get_tcl_call_stack]"

    set r [::xo::db::Class get_instance_from_db -id $room_id]
    foreach var {
        pretty_name
        description
        moderated_p
        active_p
        archive_p
        auto_flush_p
        auto_transcript_p
        login_messages_p
        logout_messages_p
        messages_time_window
        avatar_p
    } {
        $r set $var [set $var]
    }
    $r save
    ns_cache flush -- chat_room_cache $room_id
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: