general_comments_new (public)

 general_comments_new -object_id object_id -comment_id comment_id \
    -title title -comment_mime_type comment_mime_type \
    -context_id context_id [ -user_id user_id ] \
    [ -creation_ip creation_ip ] -is_live is_live -category category \
    -content content

Defined in packages/general-comments/tcl/general-comments-procs.tcl

Creates a comment and attaches it to a given object ID

Switches:
-object_id (required)
-comment_id (required)
-title (required)
-comment_mime_type (required)
-context_id (required)
-user_id (optional)
-creation_ip (optional)
-is_live (required)
-category (required)
-content (required)
Returns:
Error:

Partial Call Graph (max 5 caller/called nodes):
%3 test_general_comments_create_retrieve general_comments_create_retrieve (test general-comments) general_comments_new general_comments_new test_general_comments_create_retrieve->general_comments_new acs_object_type acs_object_type (public) general_comments_new->acs_object_type ad_html_text_convert ad_html_text_convert (public) general_comments_new->ad_html_text_convert callback callback (public) general_comments_new->callback content::item::get_latest_revision content::item::get_latest_revision (public) general_comments_new->content::item::get_latest_revision db_dml db_dml (public) general_comments_new->db_dml packages/general-comments/www/comment-add-3.tcl packages/general-comments/ www/comment-add-3.tcl packages/general-comments/www/comment-add-3.tcl->general_comments_new

Testcases:
general_comments_create_retrieve
[ show source ]
Show another procedure: