xo::db::sql::acs_message proc new_extlink (public)

 xo::db::sql::acs_message[i] new_extlink [ -dbn dbn ] [ -name name ] \
    [ -extlink_id extlink_id ] -url url  [ -label label ] \
    [ -description description ] -parent_id parent_id  \
    [ -creation_date creation_date ] [ -creation_user creation_user ] \
    [ -creation_ip creation_ip ] [ -package_id package_id ]

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

Automatically generated method

Switches:
-dbn (optional)
-name (optional)
-extlink_id (optional)
-url (required)
-label (optional)
-description (optional)
-parent_id (required)
-creation_date (optional, defaults to "sysdate")
-creation_user (optional)
-creation_ip (optional)
-package_id (optional)

Testcases:
No testcase defined.
Source code:
#function_args: {NAME null} {EXTLINK_ID null} {URL {}} {LABEL null} {DESCRIPTION null} {PARENT_ID {}} {CREATION_DATE sysdate} {CREATION_USER null} {CREATION_IP null} {PACKAGE_ID null}
foreach var [list NAME EXTLINK_ID URL LABEL DESCRIPTION PARENT_ID CREATION_DATE CREATION_USER CREATION_IP PACKAGE_ID]  {
  set varname [string tolower $var]
  if {[info exists $varname]} {
    set $var [set $varname]
    set _$var :$var
  } else {
    set _$var null
  }
}
set sql "
select acs_message__new_extlink($_NAME$_EXTLINK_ID$_URL$_LABEL$_DESCRIPTION$_PARENT_ID$_CREATION_DATE$_CREATION_USER$_CREATION_IP$_PACKAGE_ID) 
    "
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
[ hide source ] | [ make this the default ]
Show another procedure: