%3 ::xotcl::Object ::xotcl::Object ::xo::db::sql::pa_photo ::xo::db::sql::pa_photo → delete → delete_revision → new ::xo::db::sql::pa_photo->::xotcl::Object

Class ::xo::db::sql::pa_photo

::xo::db::sql::pa_photo[i] create ...

Class Relations

  • class: ::xo::db::Class[i]
  • superclass: ::xotcl::Object[i]
::xo::db::Class create ::xo::db::sql::pa_photo \
     -superclass ::xotcl::Object

Methods (to be applied on the object)

  • delete (scripted, public)

     xo::db::sql::pa_photo[i] delete [ -dbn dbn ] -item_id item_id 

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -item_id
    (required)

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

    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[i] delete_revision [ -dbn dbn ] \
        -revision_id revision_id 

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -revision_id
    (required)

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

    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[i] 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
    (defaults to "now()") (optional)
    -creation_user
    (optional)
    -creation_ip
    (optional)
    -locale
    (optional)
    -context_id
    (optional)
    -title
    (optional)
    -description
    (optional)
    -is_live
    (defaults to "f") (optional)
    -publish_date
    (defaults to "now()") (optional)
    -nls_language
    (optional)
    -caption
    (optional)
    -story
    (optional)
    -childof
    (optional)

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

    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 ]
    }