forum::message::open (public)

 forum::message::open -message_id message_id

Defined in packages/forums/tcl/messages-procs.tcl

Reopen a thread.
This is not exactly a cheap operation if the thread is long.

Switches:
-message_id
(required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_forum_message_new forum_message_new (test forums) forum::message::open forum::message::open test_forum_message_new->forum::message::open db_dml db_dml (public) forum::message::open->db_dml

Testcases:
forum_message_new
Source code:
    db_dml close_thread {
        update forums_messages set
           open_p = 't'
        where message_id in (
           with recursive message_hierarchy as (
              select message_id
                from forums_messages
               where message_id = :message_id

              union all

              select m.message_id
                from forums_messages m,
                     message_hierarchy h
               where m.parent_id = h.message_id
           )
           select message_id
             from message_hierarchy
        )
    }
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/forums/tcl/messages-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: