%3 ::xotcl::Object ::xotcl::Object ::xo::db::sql::content_extlink ::xo::db::sql::content_extlink → copy → delete → is_extlink → new ::xo::db::sql::content_extlink->::xotcl::Object

Class ::xo::db::sql::content_extlink

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

Defined in

Class Relations

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

Methods (to be applied on the object)

  • copy (scripted, public)

     xo::db::sql::content_extlink[i] copy [ -dbn dbn ] -extlink_id extlink_id  \
        -target_folder_id target_folder_id  -creation_user creation_user  \
        [ -creation_ip creation_ip ] -name name 

    Automatically generated method

    Switches:
    -dbn (optional)
    -extlink_id (required)
    -target_folder_id (required)
    -creation_user (required)
    -creation_ip (optional)
    -name (required)

    Testcases:
    No testcase defined.
    #function_args: {EXTLINK_ID {}} {TARGET_FOLDER_ID {}} {CREATION_USER {}} {CREATION_IP null} {NAME {}}
    foreach var [list EXTLINK_ID TARGET_FOLDER_ID CREATION_USER CREATION_IP NAME]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select content_extlink__copy($_EXTLINK_ID$_TARGET_FOLDER_ID$_CREATION_USER$_CREATION_IP$_NAME) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }
  • delete (scripted, public)

     xo::db::sql::content_extlink[i] delete [ -dbn dbn ] \
        -extlink_id extlink_id 

    Automatically generated method

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

    Testcases:
    No testcase defined.
    #function_args: {EXTLINK_ID {}}
    foreach var [list EXTLINK_ID]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select content_extlink__delete($_EXTLINK_ID) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }
  • is_extlink (scripted, public)

     xo::db::sql::content_extlink[i] is_extlink [ -dbn dbn ] -item_id item_id 

    Automatically 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 content_extlink__is_extlink($_ITEM_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::content_extlink[i] new [ -dbn dbn ] [ -name name ] -url url  \
        [ -label label ] [ -description description ] \
        -parent_id parent_id  [ -extlink_id extlink_id ] \
        [ -creation_date creation_date ] [ -creation_user creation_user ] \
        [ -creation_ip creation_ip ] [ -package_id package_id ] \
        [ -childof childof ]

    Automatically generated method

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

    Testcases:
    No testcase defined.
    #function_args: {NAME null} {URL {}} {LABEL null} {DESCRIPTION null} {PARENT_ID {}} {EXTLINK_ID null} {CREATION_DATE now} {CREATION_USER null} {CREATION_IP null} {PACKAGE_ID null}
    foreach var [list NAME URL LABEL DESCRIPTION PARENT_ID EXTLINK_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 content_extlink__new($_NAME$_URL$_LABEL$_DESCRIPTION$_PARENT_ID$_EXTLINK_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 ]
    }