xo::db::CrItem instproc save_new (public)

 <instance of xo::db::CrItem[i]> save_new [ -package_id package_id ] \
    [ -creation_user creation_user ] [ -creation_ip creation_ip ] \
    [ -context_id context_id ] [ -live_p on|off ] \
    [ -use_given_publish_date on|off ]

Defined in /var/www/openacs.org/packages/xotcl-core/tcl/cr-procs.tcl

Insert a new item to the content repository.

Switches:
-package_id (optional)
-creation_user (optional)
user_id if the creating user
-creation_ip (optional)
-context_id (optional)
-live_p (optional, boolean, defaults to "true")
make this revision the live revision
-use_given_publish_date (optional, boolean, defaults to "false")

Testcases:
xotcl_core_tutorial_4, test_cr_items
[ show source ]
Show another procedure: