xo::db::sql::pinds_blog_entry proc new (public)
xo::db::sql::pinds_blog_entry new [ -dbn dbn ] -entry_id entry_id \ -package_id package_id -title title -title_url title_url \ -category_id category_id -content content \ -content_format content_format -entry_date entry_date \ -draft_p draft_p -creation_user creation_user \ -creation_ip creation_ip [ -childof childof ]
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
Automatically generated method
- Switches:
- -dbn (optional)
- -entry_id (required)
- -package_id (required)
- -title (required)
- -title_url (required)
- -category_id (required)
- -content (required)
- -content_format (required)
- -entry_date (required)
- -draft_p (required)
- -creation_user (required)
- -creation_ip (required)
- -childof (optional)
- Testcases:
- No testcase defined.
Source code: #function_args: {ENTRY_ID {}} {PACKAGE_ID {}} {TITLE {}} {TITLE_URL {}} {CATEGORY_ID {}} {CONTENT {}} {CONTENT_FORMAT {}} {ENTRY_DATE {}} {DRAFT_P {}} {CREATION_USER {}} {CREATION_IP {}} foreach var [list ENTRY_ID PACKAGE_ID TITLE TITLE_URL CATEGORY_ID CONTENT CONTENT_FORMAT ENTRY_DATE DRAFT_P CREATION_USER CREATION_IP] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select pinds_blog_entry__new($_ENTRY_ID, $_PACKAGE_ID, $_TITLE, $_TITLE_URL, $_CATEGORY_ID, $_CONTENT, $_CONTENT_FORMAT, $_ENTRY_DATE, $_DRAFT_P, $_CREATION_USER, $_CREATION_IP) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }XQL Not present: Generic, PostgreSQL, Oracle