- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xo::db::sql::download_rep
::xo::db::sql::download_rep create ...
Class Relations
::xo::db::Class create ::xo::db::sql::download_rep \ -superclass ::xotcl::ObjectMethods (to be applied on the object)
delete (scripted, public)
xo::db::sql::download_rep delete [ -dbn dbn ] \ -repository_id repository_idAutomatically generated method
- Switches:
- -dbn
(optional)- -repository_id
(required)- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
#function_args: {REPOSITORY_ID {}} foreach var [list REPOSITORY_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select download_rep__delete($_REPOSITORY_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }edit (scripted, public)
xo::db::sql::download_rep edit [ -dbn dbn ] \ -repository_id repository_id -title title \ -description description -help_text help_text \ -last_modified last_modified -modifying_user modifying_user \ -modifying_ip modifying_ipAutomatically generated method
- Switches:
- -dbn
(optional)- -repository_id
(required)- -title
(required)- -description
(required)- -help_text
(required)- -last_modified
(required)- -modifying_user
(required)- -modifying_ip
(required)- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
#function_args: {REPOSITORY_ID {}} {TITLE {}} {DESCRIPTION {}} {HELP_TEXT {}} {LAST_MODIFIED {}} {MODIFYING_USER {}} {MODIFYING_IP {}} foreach var [list REPOSITORY_ID TITLE DESCRIPTION HELP_TEXT LAST_MODIFIED MODIFYING_USER MODIFYING_IP] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select download_rep__edit($_REPOSITORY_ID, $_TITLE, $_DESCRIPTION, $_HELP_TEXT, $_LAST_MODIFIED, $_MODIFYING_USER, $_MODIFYING_IP) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }new (scripted, public)
xo::db::sql::download_rep new [ -dbn dbn ] \ -repository_id repository_id -title title \ -description description [ -help_text help_text ] \ [ -creation_date creation_date ] [ -creation_user creation_user ] \ [ -parent_id parent_id ] [ -context_id context_id ] \ [ -creation_ip creation_ip ] [ -childof childof ]Automatically generated method
- Switches:
- -dbn
(optional)- -repository_id
(required)- -title
(required)- -description
(required)- -help_text
(optional)- -creation_date
(defaults to"now()"
) (optional)- -creation_user
(optional)- -parent_id
(optional)- -context_id
(optional)- -creation_ip
(optional)- -childof
(optional)- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
#function_args: {REPOSITORY_ID {}} {TITLE {}} {DESCRIPTION {}} {HELP_TEXT null} {CREATION_DATE now()} {CREATION_USER null} {PARENT_ID null} {CONTEXT_ID null} {CREATION_IP null} foreach var [list REPOSITORY_ID TITLE DESCRIPTION HELP_TEXT CREATION_DATE CREATION_USER PARENT_ID CONTEXT_ID 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 download_rep__new($_REPOSITORY_ID, $_TITLE, $_DESCRIPTION, $_HELP_TEXT, $_CREATION_DATE, $_CREATION_USER, $_PARENT_ID, $_CONTEXT_ID, $_CREATION_IP) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables