xo::db::sql::authority proc new (public)

 xo::db::sql::authority[i] new [ -dbn dbn ] [ -authority_id authority_id ] \
    [ -object_type object_type ] -short_name short_name  \
    -pretty_name pretty_name  [ -enabled_p enabled_p ] \
    -sort_order sort_order  [ -auth_impl_id auth_impl_id ] \
    [ -pwd_impl_id pwd_impl_id ] \
    [ -forgotten_pwd_url forgotten_pwd_url ] \
    [ -change_pwd_url change_pwd_url ] \
    [ -register_impl_id register_impl_id ] \
    [ -register_url register_url ] \
    [ -help_contact_text help_contact_text ] \
    [ -creation_user creation_user ] [ -creation_ip creation_ip ] \
    [ -context_id context_id ] [ -childof childof ]

Defined in packages/xotcl-core/tcl/05-db-procs.tcl

Automatically generated method

Switches:
-dbn
(optional)
-authority_id
(optional)
-object_type
(defaults to "authority") (optional)
-short_name
(required)
-pretty_name
(required)
-enabled_p
(defaults to "t") (optional)
-sort_order
(required)
-auth_impl_id
(optional)
-pwd_impl_id
(optional)
-forgotten_pwd_url
(optional)
-change_pwd_url
(optional)
-register_impl_id
(optional)
-register_url
(optional)
-help_contact_text
(optional)
-creation_user
(optional)
-creation_ip
(optional)
-context_id
(optional)
-childof
(optional)

Partial Call Graph (max 5 caller/called nodes):
%3 db_with_handle db_with_handle (public) xo::db::sql::authority proc new xo::db::sql::authority proc new xo::db::sql::authority proc new->db_with_handle

Testcases:
No testcase defined.
Source code:
#function_args: {AUTHORITY_ID null} {OBJECT_TYPE authority} {SHORT_NAME {}} {PRETTY_NAME {}} {ENABLED_P t} {SORT_ORDER {}} {AUTH_IMPL_ID null} {PWD_IMPL_ID null} {FORGOTTEN_PWD_URL null} {CHANGE_PWD_URL null} {REGISTER_IMPL_ID null} {REGISTER_URL null} {HELP_CONTACT_TEXT null} {CREATION_USER null} {CREATION_IP null} {CONTEXT_ID null}
foreach var [list AUTHORITY_ID OBJECT_TYPE SHORT_NAME PRETTY_NAME ENABLED_P SORT_ORDER AUTH_IMPL_ID PWD_IMPL_ID FORGOTTEN_PWD_URL CHANGE_PWD_URL REGISTER_IMPL_ID REGISTER_URL HELP_CONTACT_TEXT CREATION_USER CREATION_IP CONTEXT_ID]  {
  set varname [string tolower $var]
  if {[info exists $varname]} {
    set $var [set $varname]
    set _$var :$var
  } else {
    set _$var null
  }
}
set sql "
select authority__new($_AUTHORITY_ID$_OBJECT_TYPE$_SHORT_NAME$_PRETTY_NAME$_ENABLED_P$_SORT_ORDER$_AUTH_IMPL_ID$_PWD_IMPL_ID$_FORGOTTEN_PWD_URL$_CHANGE_PWD_URL$_REGISTER_IMPL_ID$_REGISTER_URL$_HELP_CONTACT_TEXT$_CREATION_USER$_CREATION_IP$_CONTEXT_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: