- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xo::db::sql::pa_photo
::xo::db::sql::pa_photo create ...
Defined in
Class Relations
::xo::db::Class create ::xo::db::sql::pa_photo \ -superclass ::xotcl::ObjectMethods (to be applied on the object)
delete (scripted, public)
xo::db::sql::pa_photo delete [ -dbn dbn ] -item_id item_idAutomatically generated method
- Switches:
- -dbn (optional)
- -item_id (required)
- Testcases:
- No testcase defined.
#function_args: {ITEM_ID {}} foreach var [list ITEM_ID] { 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__delete($_ITEM_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }delete_revision (scripted, public)
xo::db::sql::pa_photo delete_revision [ -dbn dbn ] \ -revision_id revision_idAutomatically generated method
- Switches:
- -dbn (optional)
- -revision_id (required)
- Testcases:
- No testcase defined.
#function_args: {REVISION_ID {}} foreach var [list REVISION_ID] { 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__delete_revision($_REVISION_ID) " 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::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 ]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.
#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 ] }
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables