xotcl.wu-wien.ac.at
Begin main content
Methods: Source: Variables:
[All Methods | Documented Methods | Hide Methods] [Display Source | Hide Source] [Show Variables | Hide Variables]

::xo::db::Class[i] ::xo::db::sql::content_folder

Class Hierarchy of ::xo::db::sql::content_folder

  • ::xotcl::Object[i]
    Meta-class:
    ::xotcl::Class[i]
    Methods for instances:
    __api_make_doc, __api_make_forward_doc, __timediff, abstract, ad_doc, ad_forward, ad_proc, appendC, arrayC, asHTML, autonameC, check, classC, cleanupC, configureC, containsC, copyC, db_0or1rowC, db_1rowC, debug, defaultmethodC, destroyC, destroy_on_cleanup, ds, evalC, existsC, extractConfigureArg, filterC, filterguardC, filtersearch, forward, hasclass, incrC, infoC, init, instvarC, invarC, isclass, ismetaclass, ismixin, isobject, istype, lappendC, log, method, mixinC, mixinguardC, moveC, msg, noinitC, objectparameter, parametercmdC, proc, procsearch, qn, requireNamespaceC, residualargsC, self, serialize, setC, set_instance_vars_defaults, show-object, substC, traceC, unknown, unsetC, uplevelC, upvarC, volatileC, vwait
    Methods to be applied on the class (in addition to the methods provided by the meta-class):
    getExitHandler, setExitHandler, unsetExitHandler

Class Relations

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

Methods

  • proc copy (public)

    ::xo::db::sql::content_folder[i] copy [ -dbn dbn ] -folder_id folder_id  \
        -target_folder_id target_folder_id  -creation_user creation_user  \
        [ -creation_ip creation_ip ] [ -name name ]
    Automatically generated method

    Switches:
    -dbn (optional)
    -folder_id (required)
    -target_folder_id (required)
    -creation_user (required)
    -creation_ip (optional)
    -name (optional)
    ::2484532 proc copy {{-dbn {}} -folder_id:required -target_folder_id:required -creation_user:required -creation_ip -name} {
            #function_args: {FOLDER_ID {}} {TARGET_FOLDER_ID {}} {CREATION_USER {}} {CREATION_IP null} {NAME null}
            foreach var [list FOLDER_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_folder__copy($_FOLDER_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 ]
            }
          }
    
  • proc del (public)

    ::xo::db::sql::content_folder[i] del [ -dbn dbn ] -folder_id folder_id  \
        [ -cascade_p cascade_p ]
    Automatically generated method

    Switches:
    -dbn (optional)
    -folder_id (required)
    -cascade_p (defaults to "f") (optional)
    ::2484532 proc del {{-dbn {}} -folder_id:required {-cascade_p f}} {
            #function_args: {FOLDER_ID {}} {CASCADE_P f}
            foreach var [list FOLDER_ID CASCADE_P]  {
              set varname [string tolower $var]
              if {[info exists $varname]} {
                set $var [set $varname]
                set _$var :$var
              } else {
                set _$var null
              }
            }
            set sql "
            select content_folder__del($_FOLDER_ID, $_CASCADE_P)
          "
            db_with_handle -dbn $dbn db {
              #ns_log notice "--sql=$sql"
              return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
            }
          }
    
  • proc delete (public)

    ::xo::db::sql::content_folder[i] delete [ -dbn dbn ] \
        -folder_id folder_id  [ -cascade_p cascade_p ]
    Automatically generated method

    Switches:
    -dbn (optional)
    -folder_id (required)
    -cascade_p (defaults to "f") (optional)
    ::2484532 proc delete {{-dbn {}} -folder_id:required {-cascade_p f}} {
            #function_args: {FOLDER_ID {}} {CASCADE_P f}
            foreach var [list FOLDER_ID CASCADE_P]  {
              set varname [string tolower $var]
              if {[info exists $varname]} {
                set $var [set $varname]
                set _$var :$var
              } else {
                set _$var null
              }
            }
            set sql "
            select content_folder__delete($_FOLDER_ID, $_CASCADE_P)
          "
            db_with_handle -dbn $dbn db {
              #ns_log notice "--sql=$sql"
              return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
            }
          }
    
  • proc edit_name (public)

    ::xo::db::sql::content_folder[i] edit_name [ -dbn dbn ] \
        -folder_id folder_id  -name name  -label label  \
        -description description 
    Automatically generated method

    Switches:
    -dbn (optional)
    -folder_id (required)
    -name (required)
    -label (required)
    -description (required)
    ::2484532 proc edit_name {{-dbn {}} -folder_id:required -name:required -label:required -description:required} {
            #function_args: {FOLDER_ID {}} {NAME {}} {LABEL {}} {DESCRIPTION {}}
            foreach var [list FOLDER_ID NAME LABEL DESCRIPTION]  {
              set varname [string tolower $var]
              if {[info exists $varname]} {
                set $var [set $varname]
                set _$var :$var
              } else {
                set _$var null
              }
            }
            set sql "
            select content_folder__edit_name($_FOLDER_ID, $_NAME, $_LABEL, $_DESCRIPTION)
          "
            db_with_handle -dbn $dbn db {
              #ns_log notice "--sql=$sql"
              return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
            }
          }
    
  • proc get_index_page (public)

    ::xo::db::sql::content_folder[i] get_index_page [ -dbn dbn ] \
        -folder_id folder_id 
    Automatically generated method

    Switches:
    -dbn (optional)
    -folder_id (required)
    ::2484532 proc get_index_page {{-dbn {}} -folder_id:required} {
            #function_args: {FOLDER_ID {}}
            foreach var [list FOLDER_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_folder__get_index_page($_FOLDER_ID)
          "
            db_with_handle -dbn $dbn db {
              #ns_log notice "--sql=$sql"
              return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
            }
          }
    
  • proc get_label (public)

    ::xo::db::sql::content_folder[i] get_label [ -dbn dbn ] \
        -folder_id folder_id 
    Automatically generated method

    Switches:
    -dbn (optional)
    -folder_id (required)
    ::2484532 proc get_label {{-dbn {}} -folder_id:required} {
            #function_args: {FOLDER_ID {}}
            foreach var [list FOLDER_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_folder__get_label($_FOLDER_ID)
          "
            db_with_handle -dbn $dbn db {
              #ns_log notice "--sql=$sql"
              return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
            }
          }
    
  • proc is_empty (public)

    ::xo::db::sql::content_folder[i] is_empty [ -dbn dbn ] \
        -folder_id folder_id 
    Automatically generated method

    Switches:
    -dbn (optional)
    -folder_id (required)
    ::2484532 proc is_empty {{-dbn {}} -folder_id:required} {
            #function_args: {FOLDER_ID {}}
            foreach var [list FOLDER_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_folder__is_empty($_FOLDER_ID)
          "
            db_with_handle -dbn $dbn db {
              #ns_log notice "--sql=$sql"
              return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
            }
          }
    
  • proc is_folder (public)

    ::xo::db::sql::content_folder[i] is_folder [ -dbn dbn ] -item_id item_id 
    Automatically generated method

    Switches:
    -dbn (optional)
    -item_id (required)
    ::2484532 proc is_folder {{-dbn {}} -item_id:required} {
            #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_folder__is_folder($_ITEM_ID)
          "
            db_with_handle -dbn $dbn db {
              #ns_log notice "--sql=$sql"
              return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
            }
          }
    
  • proc is_registered (public)

    ::xo::db::sql::content_folder[i] is_registered [ -dbn dbn ] \
        -folder_id folder_id  -content_type content_type  \
        [ -include_subtypes include_subtypes ]
    Automatically generated method

    Switches:
    -dbn (optional)
    -folder_id (required)
    -content_type (required)
    -include_subtypes (defaults to "f") (optional)
    ::2484532 proc is_registered {{-dbn {}} -folder_id:required -content_type:required {-include_subtypes f}} {
            #function_args: {FOLDER_ID {}} {CONTENT_TYPE {}} {INCLUDE_SUBTYPES f}
            foreach var [list FOLDER_ID CONTENT_TYPE INCLUDE_SUBTYPES]  {
              set varname [string tolower $var]
              if {[info exists $varname]} {
                set $var [set $varname]
                set _$var :$var
              } else {
                set _$var null
              }
            }
            set sql "
            select content_folder__is_registered($_FOLDER_ID, $_CONTENT_TYPE, $_INCLUDE_SUBTYPES)
          "
            db_with_handle -dbn $dbn db {
              #ns_log notice "--sql=$sql"
              return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
            }
          }
    
  • proc is_root (public)

    ::xo::db::sql::content_folder[i] is_root [ -dbn dbn ] \
        -folder_id folder_id 
    Automatically generated method

    Switches:
    -dbn (optional)
    -folder_id (required)
    ::2484532 proc is_root {{-dbn {}} -folder_id:required} {
            #function_args: {FOLDER_ID {}}
            foreach var [list FOLDER_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_folder__is_root($_FOLDER_ID)
          "
            db_with_handle -dbn $dbn db {
              #ns_log notice "--sql=$sql"
              return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
            }
          }
    
  • proc is_sub_folder (public)

    ::xo::db::sql::content_folder[i] is_sub_folder [ -dbn dbn ] \
        -folder_id folder_id  -target_folder_id target_folder_id 
    Automatically generated method

    Switches:
    -dbn (optional)
    -folder_id (required)
    -target_folder_id (required)
    ::2484532 proc is_sub_folder {{-dbn {}} -folder_id:required -target_folder_id:required} {
            #function_args: {FOLDER_ID {}} {TARGET_FOLDER_ID {}}
            foreach var [list FOLDER_ID TARGET_FOLDER_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_folder__is_sub_folder($_FOLDER_ID, $_TARGET_FOLDER_ID)
          "
            db_with_handle -dbn $dbn db {
              #ns_log notice "--sql=$sql"
              return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
            }
          }
    
  • proc move (public)

    ::xo::db::sql::content_folder[i] move [ -dbn dbn ] -folder_id folder_id  \
        -target_folder_id target_folder_id  [ -name name ]
    Automatically generated method

    Switches:
    -dbn (optional)
    -folder_id (required)
    -target_folder_id (required)
    -name (optional)
    ::2484532 proc move {{-dbn {}} -folder_id:required -target_folder_id:required -name} {
            #function_args: {FOLDER_ID {}} {TARGET_FOLDER_ID {}} {NAME null}
            foreach var [list FOLDER_ID TARGET_FOLDER_ID 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_folder__move($_FOLDER_ID, $_TARGET_FOLDER_ID, $_NAME)
          "
            db_with_handle -dbn $dbn db {
              #ns_log notice "--sql=$sql"
              return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
            }
          }
    
  • proc new (public)

    ::xo::db::sql::content_folder[i] new [ -dbn dbn ] -name name  \
        -label label  -description description  -parent_id parent_id  \
        -context_id context_id  -folder_id folder_id  \
        [ -creation_date creation_date ] -creation_user creation_user  \
        -creation_ip creation_ip  \
        [ -security_inherit_p security_inherit_p ] -package_id package_id  \
        [ -childof childof ]
    Automatically generated method

    Switches:
    -dbn (optional)
    -name (required)
    -label (required)
    -description (required)
    -parent_id (required)
    -context_id (required)
    -folder_id (required)
    -creation_date (defaults to "now") (optional)
    -creation_user (required)
    -creation_ip (required)
    -security_inherit_p (defaults to "t") (optional)
    -package_id (required)
    -childof (optional)
    ::2484532 proc new {{-dbn {}} -name:required -label:required -description:required -parent_id:required -context_id:required -folder_id:required {-creation_date now} -creation_user:required -creation_ip:required {-security_inherit_p t} -package_id:required -childof} {
            #function_args: {NAME {}} {LABEL {}} {DESCRIPTION {}} {PARENT_ID {}} {CONTEXT_ID {}} {FOLDER_ID {}} {CREATION_DATE now} {CREATION_USER {}} {CREATION_IP {}} {SECURITY_INHERIT_P t} {PACKAGE_ID {}}
            foreach var [list NAME LABEL DESCRIPTION PARENT_ID CONTEXT_ID FOLDER_ID CREATION_DATE CREATION_USER CREATION_IP SECURITY_INHERIT_P 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_folder__new($_NAME, $_LABEL, $_DESCRIPTION, $_PARENT_ID, $_CONTEXT_ID, $_FOLDER_ID, $_CREATION_DATE, $_CREATION_USER, $_CREATION_IP, $_SECURITY_INHERIT_P, $_PACKAGE_ID)
          "
            db_with_handle -dbn $dbn db {
              #ns_log notice "--sql=$sql"
              return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
            }
          }
    
  • proc register_content_type (public)

    ::xo::db::sql::content_folder[i] register_content_type [ -dbn dbn ] \
        -folder_id folder_id  -content_type content_type  \
        [ -include_subtypes include_subtypes ]
    Automatically generated method

    Switches:
    -dbn (optional)
    -folder_id (required)
    -content_type (required)
    -include_subtypes (defaults to "f") (optional)
    ::2484532 proc register_content_type {{-dbn {}} -folder_id:required -content_type:required {-include_subtypes f}} {
            #function_args: {FOLDER_ID {}} {CONTENT_TYPE {}} {INCLUDE_SUBTYPES f}
            foreach var [list FOLDER_ID CONTENT_TYPE INCLUDE_SUBTYPES]  {
              set varname [string tolower $var]
              if {[info exists $varname]} {
                set $var [set $varname]
                set _$var :$var
              } else {
                set _$var null
              }
            }
            set sql "
            select content_folder__register_content_type($_FOLDER_ID, $_CONTENT_TYPE, $_INCLUDE_SUBTYPES)
          "
            db_with_handle -dbn $dbn db {
              #ns_log notice "--sql=$sql"
              return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
            }
          }
    
  • proc unregister_content_type (public)

    ::xo::db::sql::content_folder[i] unregister_content_type [ -dbn dbn ] \
        -folder_id folder_id  -content_type content_type  \
        [ -include_subtypes include_subtypes ]
    Automatically generated method

    Switches:
    -dbn (optional)
    -folder_id (required)
    -content_type (required)
    -include_subtypes (defaults to "f") (optional)
    ::2484532 proc unregister_content_type {{-dbn {}} -folder_id:required -content_type:required {-include_subtypes f}} {
            #function_args: {FOLDER_ID {}} {CONTENT_TYPE {}} {INCLUDE_SUBTYPES f}
            foreach var [list FOLDER_ID CONTENT_TYPE INCLUDE_SUBTYPES]  {
              set varname [string tolower $var]
              if {[info exists $varname]} {
                set $var [set $varname]
                set _$var :$var
              } else {
                set _$var null
              }
            }
            set sql "
            select content_folder__unregister_content_type($_FOLDER_ID, $_CONTENT_TYPE, $_INCLUDE_SUBTYPES)
          "
            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_folder set __default_metaclass ::xotcl::Class
::xo::db::sql::content_folder set __default_superclass ::xotcl::Object
::xo::db::sql::content_folder set abstract_p f
::xo::db::sql::content_folder set arg_order FOLDER_ID
::xo::db::sql::content_folder set auto_save false
::xo::db::sql::content_folder array set defined {FOLDER_ID {}}
::xo::db::sql::content_folder set function_args {{FOLDER_ID {}}}
::xo::db::sql::content_folder set name_method {}
::xo::db::sql::content_folder set object_type ::xo::db::sql::content_folder
::xo::db::sql::content_folder set security_inherit_p t
::xo::db::sql::content_folder set sql {
        select content_folder__is_empty($_FOLDER_ID)
      }
::xo::db::sql::content_folder set sql_package_name content_folder
::xo::db::sql::content_folder set supertype acs_object
::xo::db::sql::content_folder set with_table true

Methods: Source: Variables:
[All Methods | Documented Methods | Hide Methods] [Display Source | Hide Source] [Show Variables | Hide Variables]