%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 ...

Defined in

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)

    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)

    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)

    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)

    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 (optional, defaults to "now")
    -creation_user (optional)
    -creation_ip (optional)
    -package_id (optional)
    -childof (optional)

    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)

    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)

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

Variables

::xo::db::sql::content_symlink set __default_metaclass ::xotcl::Class
::xo::db::sql::content_symlink set __default_superclass ::xotcl::Object
::xo::db::sql::content_symlink set abstract_p f
::xo::db::sql::content_symlink set auto_save false
::xo::db::sql::content_symlink set name_method {}
::xo::db::sql::content_symlink set object_type ::xo::db::sql::content_symlink
::xo::db::sql::content_symlink set security_inherit_p t
::xo::db::sql::content_symlink set sql_package_name content_symlink
::xo::db::sql::content_symlink set supertype acs_object
::xo::db::sql::content_symlink set with_table true