xowiki::FormPage proc fetch_object (public)
xowiki::FormPage fetch_object -item_id item_id \ [ -revision_id revision_id ] -object object \ [ -initialize on|off ]
Defined in /var/www/openacs.org/packages/xowiki/tcl/xowiki-procs.tcl
Load a content item into the specified object. If revision_id is provided, the specified revision is returned, otherwise the live revision of the item_id. If the object does not exist, we create it.
- Switches:
- -item_id (required)
- -revision_id (optional, defaults to
"0"
)- -object (required)
- -initialize (optional, boolean, defaults to
"true"
)- Returns:
- cr item object
- Testcases:
- xowiki_test_cases, link_tests, path_resolve