• Publicity: Public Only All

form-procs.tcl

Reusable forms in the forums package

Location:
packages/forums/tcl/form-procs.tcl
Created:
2003-11-12
Author:
lee@thaum.net

Procedures in this file

Detailed information

forums::form::forum (public)

 forums::form::forum [ -prefix prefix ] form_name

Constructs the elements of a form for creating/editing a forum

Switches:
-prefix (optional)
Parameters:
form_name (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_web_forum_edit web_forum_edit (test forums) forums::form::forum forums::form::forum test_web_forum_edit->forums::form::forum test_web_forum_new web_forum_new (test forums) test_web_forum_new->forums::form::forum test_web_forum_view web_forum_view (test forums) test_web_forum_view->forums::form::forum test_web_forums_message_and_reply web_forums_message_and_reply (test forums) test_web_forums_message_and_reply->forums::form::forum _ _ (public) forums::form::forum->_ forum::attachments_enabled_p forum::attachments_enabled_p (public) forums::form::forum->forum::attachments_enabled_p template::element template::element (public) forums::form::forum->template::element packages/forums/lib/forums/edit.tcl packages/forums/ lib/forums/edit.tcl packages/forums/lib/forums/edit.tcl->forums::form::forum packages/forums/lib/forums/new.tcl packages/forums/ lib/forums/new.tcl packages/forums/lib/forums/new.tcl->forums::form::forum

Testcases:
web_forum_new, web_forum_view, web_forum_edit, web_forums_message_and_reply

forums::form::forward_message (public)

 forums::form::forward_message [ -prefix prefix ] form_name

adds form elements to form_name to allow the user to enter the details of a message they want to forward by email

Switches:
-prefix (optional)
Parameters:
form_name (required)

Partial Call Graph (max 5 caller/called nodes):
%3 packages/forums/www/message-email.tcl packages/forums/ www/message-email.tcl forums::form::forward_message forums::form::forward_message packages/forums/www/message-email.tcl->forums::form::forward_message _ _ (public) forums::form::forward_message->_ template::element template::element (public) forums::form::forward_message->template::element

Testcases:
No testcase defined.

forums::form::message (public)

 forums::form::message [ -optional ] [ -prefix prefix ] form_name

adds form elements to form_name which represent the data held in a forum message

Switches:
-optional (optional, boolean)
-prefix (optional)
Parameters:
form_name (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_web_forums_message_and_reply web_forums_message_and_reply (test forums) forums::form::message forums::form::message test_web_forums_message_and_reply->forums::form::message _ _ (public) forums::form::message->_ template::element template::element (public) forums::form::message->template::element packages/forums/lib/message/edit.tcl packages/forums/ lib/message/edit.tcl packages/forums/lib/message/edit.tcl->forums::form::message

Testcases:
web_forums_message_and_reply

forums::form::post_message (public)

 forums::form::post_message [ -optional ] \
    [ -show_anonymous_p show_anonymous_p ] \
    [ -show_attachments_p show_attachments_p ] [ -prefix prefix ] \
    form_name

adds form elements to a form for the default post message form

Switches:
-optional (optional, boolean)
-show_anonymous_p (optional, defaults to "1")
-show_attachments_p (optional, defaults to "1")
-prefix (optional)
Parameters:
form_name (required)

Partial Call Graph (max 5 caller/called nodes):
%3 _ _ (public) template::element template::element (public) forums::form::post_message forums::form::post_message forums::form::post_message->_ forums::form::post_message->template::element

Testcases:
No testcase defined.

forums::form::search (public)

 forums::form::search [ -prefix prefix ] form_name

Constructs the elements of a form for searching for a term optionally in a particular forum

Switches:
-prefix (optional)
Parameters:
form_name (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_web_forum_edit web_forum_edit (test forums) forums::form::search forums::form::search test_web_forum_edit->forums::form::search test_web_forum_view web_forum_view (test forums) test_web_forum_view->forums::form::search test_web_forums_message_and_reply web_forums_message_and_reply (test forums) test_web_forums_message_and_reply->forums::form::search _ _ (public) forums::form::search->_ template::element template::element (public) forums::form::search->template::element packages/forums/lib/search/search-chunk.tcl packages/forums/ lib/search/search-chunk.tcl packages/forums/lib/search/search-chunk.tcl->forums::form::search packages/forums/lib/search/search-form.tcl packages/forums/ lib/search/search-form.tcl packages/forums/lib/search/search-form.tcl->forums::form::search

Testcases:
web_forum_view, web_forum_edit, web_forums_message_and_reply
[ show source ]