xo::db::sql::pa_photo proc new (public)
xo::db::sql::pa_photo new [ -dbn dbn ] -name name \ [ -parent_id parent_id ] [ -item_id item_id ] \ [ -revision_id revision_id ] [ -creation_date creation_date ] \ [ -creation_user creation_user ] [ -creation_ip creation_ip ] \ [ -locale locale ] [ -context_id context_id ] [ -title title ] \ [ -description description ] [ -is_live is_live ] \ [ -publish_date publish_date ] [ -nls_language nls_language ] \ [ -caption caption ] [ -story story ] [ -childof childof ]
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
Automatically generated method
- Switches:
- -dbn (optional)
- -name (required)
- -parent_id (optional)
- -item_id (optional)
- -revision_id (optional)
- -creation_date (optional, defaults to
"now()"
)- -creation_user (optional)
- -creation_ip (optional)
- -locale (optional)
- -context_id (optional)
- -title (optional)
- -description (optional)
- -is_live (optional, defaults to
"f"
)- -publish_date (optional, defaults to
"now()"
)- -nls_language (optional)
- -caption (optional)
- -story (optional)
- -childof (optional)
- Testcases:
- No testcase defined.
Source code: #function_args: {NAME {}} {PARENT_ID null} {ITEM_ID null} {REVISION_ID null} {CREATION_DATE now()} {CREATION_USER null} {CREATION_IP null} {LOCALE null} {CONTEXT_ID null} {TITLE null} {DESCRIPTION null} {IS_LIVE f} {PUBLISH_DATE now()} {NLS_LANGUAGE null} {CAPTION null} {STORY null} foreach var [list NAME PARENT_ID ITEM_ID REVISION_ID CREATION_DATE CREATION_USER CREATION_IP LOCALE CONTEXT_ID TITLE DESCRIPTION IS_LIVE PUBLISH_DATE NLS_LANGUAGE CAPTION STORY] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select pa_photo__new($_NAME, $_PARENT_ID, $_ITEM_ID, $_REVISION_ID, $_CREATION_DATE, $_CREATION_USER, $_CREATION_IP, $_LOCALE, $_CONTEXT_ID, $_TITLE, $_DESCRIPTION, $_IS_LIVE, $_PUBLISH_DATE, $_NLS_LANGUAGE, $_CAPTION, $_STORY) " 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