Class ::xo::db::sql::content_folder

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

Class Relations

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

Methods (to be applied on the object)

  • copy (scripted, 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 ] [ -label label ]

    Automatically generated method

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

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

    Testcases:
    No testcase defined.
    #function_args: {FOLDER_ID {}} {TARGET_FOLDER_ID {}} {CREATION_USER {}} {CREATION_IP null} {NAME null} {LABEL null}
    foreach var [list FOLDER_ID TARGET_FOLDER_ID CREATION_USER CREATION_IP NAME LABEL]  {
      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$_LABEL) 
        "
    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_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)

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

    Testcases:
    No testcase defined.
    #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 ]
    }
  • delete (scripted, 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)

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

    Testcases:
    No testcase defined.
    #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 ]
    }
  • edit_name (scripted, 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
    (optional)
    -label
    (optional)
    -description
    (optional)

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

    Testcases:
    No testcase defined.
    #function_args: {FOLDER_ID {}} {NAME null} {LABEL null} {DESCRIPTION null}
    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 ]
    }
  • get_index_page (scripted, 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)

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

    Testcases:
    No testcase defined.
    #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 ]
    }
  • get_label (scripted, public)

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

    Automatically generated method

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

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

    Testcases:
    No testcase defined.
    #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 ]
    }
  • is_empty (scripted, public)

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

    Automatically generated method

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

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

    Testcases:
    No testcase defined.
    #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 ]
    }
  • is_folder (scripted, public)

     xo::db::sql::content_folder[i] is_folder [ -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_folder proc is_folder xo::db::sql::content_folder proc is_folder xo::db::sql::content_folder proc is_folder->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_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 ]
    }
  • is_registered (scripted, 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)

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

    Testcases:
    No testcase defined.
    #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 ]
    }
  • is_root (scripted, public)

     xo::db::sql::content_folder[i] is_root [ -dbn dbn ] -folder_id folder_id 

    Automatically generated method

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

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

    Testcases:
    No testcase defined.
    #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 ]
    }
  • is_sub_folder (scripted, 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)

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

    Testcases:
    No testcase defined.
    #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 ]
    }
  • move (scripted, 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)

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

    Testcases:
    No testcase defined.
    #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 ]
    }
  • new (scripted, 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
    (optional)
    -parent_id
    (optional)
    -context_id
    (optional)
    -folder_id
    (optional)
    -creation_date
    (defaults to "now") (optional)
    -creation_user
    (optional)
    -creation_ip
    (optional)
    -security_inherit_p
    (defaults to "t") (optional)
    -package_id
    (optional)
    -childof
    (optional)

    Partial Call Graph (max 5 caller/called nodes):
    %3 test_xowiki_test_cases xowiki_test_cases (test xowiki) xo::db::sql::content_folder proc new xo::db::sql::content_folder proc new test_xowiki_test_cases->xo::db::sql::content_folder proc new db_with_handle db_with_handle (public) xo::db::sql::content_folder proc new->db_with_handle

    Testcases:
    xowiki_test_cases
    #function_args: {NAME {}} {LABEL {}} {DESCRIPTION null} {PARENT_ID null} {CONTEXT_ID null} {FOLDER_ID null} {CREATION_DATE now} {CREATION_USER null} {CREATION_IP null} {SECURITY_INHERIT_P t} {PACKAGE_ID null}
    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 ]
    }
  • register_content_type (scripted, 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)

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

    Testcases:
    No testcase defined.
    #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 ]
    }
  • rename (scripted, public)

     xo::db::sql::content_folder[i] rename [ -dbn dbn ] -folder_id folder_id  \
        [ -name name ] [ -label label ] [ -description description ]

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -folder_id
    (required)
    -name
    (optional)
    -label
    (optional)
    -description
    (optional)

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

    Testcases:
    No testcase defined.
    #function_args: {FOLDER_ID {}} {NAME null} {LABEL null} {DESCRIPTION null}
    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__rename($_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 ]
    }
  • unregister_content_type (scripted, 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)

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

    Testcases:
    No testcase defined.
    #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 ]
    }