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 /var/www/openacs.org/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 (optional, defaults to "t")
Boolean value (t/f) to flag whether the operation should be applied on subtypes as well
-folder_id (optional)
Parameters:
operation (required)

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: