xowiki::Package proc instantiate_page_from_id (public)

 xowiki::Package[i] instantiate_page_from_id [ -revision_id revision_id ] \
    [ -item_id item_id ] [ -user_id user_id ] [ -parameter parameter ]

Defined in /var/www/openacs.org/packages/xowiki/tcl/package-procs.tcl

Instantiate a page in situations, where the connection context is not set up (e.g. we have no package object). This call is convenient when testing e.g. from the developer shell.

Switches:
-revision_id (optional, defaults to "0")
-item_id (optional, defaults to "0")
-user_id (optional, defaults to "-1")
-parameter (optional)

Testcases:
create_workflow_with_instance
Source code:
set package_id [:get_package_id_from_page_id  -item_id $item_id  -revision_id $revision_id]
::xo::Package initialize  -export_vars false  -package_id $package_id  -init_url false -actual_query ""  -parameter $parameter  -user_id $user_id
set page [::xo::db::CrClass get_instance_from_db -item_id $item_id -revision_id $revision_id]
::$package_id set_url -url [$page pretty_link]
return $page
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: