xo::db::CrClass instproc folder_type (public)

 <instance of xo::db::CrClass[i]> folder_type \
    [ -include_subtypes include_subtypes ] [ -folder_id folder_id ] \
    operation

Defined in packages/xotcl-core/tcl/cr-procs.tcl

register the current object type for folder_id. If folder_id is not specified, use the instvar of the class instead.

Switches:
-include_subtypes
(defaults to "t") (optional)
Boolean value (t/f) to flag whether the operation should be applied on subtypes as well
-folder_id
(optional)
Parameters:
operation

Partial Call Graph (max 5 caller/called nodes):
%3 test_xotcl_core_tutorial_4 xotcl_core_tutorial_4 (test xotcl-core) xo::db::CrClass instproc folder_type xo::db::CrClass instproc folder_type test_xotcl_core_tutorial_4->xo::db::CrClass instproc folder_type

Testcases:
xotcl_core_tutorial_4
Source code:
if {$operation ne "register" && $operation ne "unregister"} {
  error "[self] operation for folder_type must be 'register' or 'unregister'"
}
if {![info exists folder_id]} {
  set folder_id ${:folder_id}
}
::acs::dc call content_folder ${operation}_content_type  -folder_id $folder_id  -content_type ${:object_type}  -include_subtypes $include_subtypes
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: