Home
The Toolkit for Online Communities
15903 Community Members, 0 members online, 2405 visitors today
Log In Register

::xo::db::CrClass instproc fetch_object

OpenACS Home : ACS API Browser : {::xo::db::CrClass instproc fetch_object}

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

<instance of ::xo::db::CrClass[i]> fetch_object -item_id item_id  \
    [ -revision_id revision_id ] -object object  \
    [ -initialize initialize ]
Defined in packages/xotcl-core/tcl/cr-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 (defaults to "0") (optional)
-object (required)
-initialize (defaults to "true") (optional)
Returns:
cr item object
[ show source ]
Show another procedure: