%3 ::xotcl::Object ::xotcl::Object ::xo::db::sql::content_symlink ::xo::db::sql::content_symlink → copy → del → delete → is_symlink → new → resolve → resolve_content_type ::xo::db::sql::content_symlink->::xotcl::Object

Class ::xo::db::sql::content_symlink

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

Class Relations

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

Methods (to be applied on the object)

  • copy (scripted, public)

     xo::db::sql::content_symlink[i] copy [ -dbn dbn ] -symlink_id symlink_id  \
        -target_folder_id target_folder_id  -creation_user creation_user  \
        [ -creation_ip creation_ip ] [ -name name ]

    Automatically generated method

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

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

    Testcases:
    No testcase defined.
    #function_args: {SYMLINK_ID {}} {TARGET_FOLDER_ID {}} {CREATION_USER {}} {CREATION_IP null} {NAME null}
    foreach var [list SYMLINK_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_symlink__copy($_SYMLINK_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 ]
    }
  • del (scripted, public)

     xo::db::sql::content_symlink[i] del [ -dbn dbn ] -symlink_id symlink_id 

    Automatically generated method

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

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

    Testcases:
    No testcase defined.
    #function_args: {SYMLINK_ID {}}
    foreach var [list SYMLINK_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_symlink__del($_SYMLINK_ID) 
        "
    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_symlink[i] delete [ -dbn dbn ] \
        -symlink_id symlink_id 

    Automatically generated method

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

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

    Testcases:
    No testcase defined.
    #function_args: {SYMLINK_ID {}}
    foreach var [list SYMLINK_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_symlink__delete($_SYMLINK_ID) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }
  • is_symlink (scripted, public)

     xo::db::sql::content_symlink[i] is_symlink [ -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::content_symlink proc is_symlink xo::db::sql::content_symlink proc is_symlink xo::db::sql::content_symlink proc is_symlink->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 content_symlink__is_symlink($_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_symlink[i] new [ -dbn dbn ] [ -name name ] \
        [ -label label ] -target_id target_id  -parent_id parent_id  \
        [ -symlink_id symlink_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)
    -label
    (optional)
    -target_id
    (required)
    -parent_id
    (required)
    -symlink_id
    (optional)
    -creation_date
    (defaults to "now") (optional)
    -creation_user
    (optional)
    -creation_ip
    (optional)
    -package_id
    (optional)
    -childof
    (optional)

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

    Testcases:
    No testcase defined.
    #function_args: {NAME null} {LABEL null} {TARGET_ID {}} {PARENT_ID {}} {SYMLINK_ID null} {CREATION_DATE now} {CREATION_USER null} {CREATION_IP null} {PACKAGE_ID null}
    foreach var [list NAME LABEL TARGET_ID PARENT_ID SYMLINK_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_symlink__new($_NAME$_LABEL$_TARGET_ID$_PARENT_ID$_SYMLINK_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 ]
    }
  • resolve (scripted, public)

     xo::db::sql::content_symlink[i] resolve [ -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::content_symlink proc resolve xo::db::sql::content_symlink proc resolve xo::db::sql::content_symlink proc resolve->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 content_symlink__resolve($_ITEM_ID) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }
  • resolve_content_type (scripted, public)

     xo::db::sql::content_symlink[i] resolve_content_type [ -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::content_symlink proc resolve_content_type xo::db::sql::content_symlink proc resolve_content_type xo::db::sql::content_symlink proc resolve_content_type->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 content_symlink__resolve_content_type($_ITEM_ID) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }