xo::db::CrFolder proc get_instance_from_db (public)
xo::db::CrFolder get_instance_from_db [ -item_id item_id ] \ [ -revision_id revision_id ] [ -initialize on|off ]
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/cr-procs.tcl
The "standard" get_instance_from_db methods return objects following the naming convention "::<acs_object_id>", e.g. ::1234
Usually, the id of the item that is fetched from the database is used. However, XoWiki's "folder objects" (i.e. an ::xowiki::Object instance that can be used to configure the respective instance) are created using the acs_object_id of the root folder of the xowiki instance, which is actually the id of another acs_object.
Because of this, we cannot simply create the instances of CrFolder using the "standard naming convention". Instead we create them as ::cr_folder<acs_object_id>.
- Switches:
- -item_id (optional, defaults to
"0"
)- -revision_id (optional, defaults to
"0"
)- -initialize (optional, boolean, defaults to
"true"
)- Testcases:
- No testcase defined.