xo::db::Object instproc save (public)
<instance of xo::db::Object> save [ -package_id package_id ] \ [ -modifying_user modifying_user ] [ -context_id context_id ]
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
Save the current object in the database
- Switches:
- -package_id (optional)
- -modifying_user (optional)
- -context_id (optional)
- Testcases:
- xotcl_core_tutorial_2, test_xo_db_object
Source code: set cmd [list :update] if {[info exists package_id]} {lappend cmd -package_id $package_id} if {[info exists modifying_user]} {lappend cmd -modifying_user $modifying_user} if {[info exists context_id]} {lappend cmd -context_id $context_id} {*}$cmdXQL Not present: Generic, PostgreSQL, Oracle