xo::db::Class proc get_object_type (public)
xo::db::Class get_object_type -id id
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
Return the object type for the give id.
- Switches:
- -id (required, integer)
- Returns:
- object_type, typically an XOTcl class
- Testcases:
- xotcl_core_tutorial_1, xotcl_core_tutorial_2
Source code: xo::xotcl_object_type_cache eval -partition_key $id $id { ::xo::dc 1row get_class "select object_type from acs_objects where object_id=:id" return $object_type }XQL Not present: Generic, PostgreSQL, Oracle