xowiki::Package instproc import (public)

 <instance of xowiki::Package[i]> import [ -user_id user_id ] \
    [ -parent_id parent_id ] [ -replace replace ] [ -objects objects ] \
    [ -create_user_ids create_user_ids ]

Defined in packages/xowiki/tcl/package-procs.tcl

import the specified pages into the xowiki instance

Switches:
-user_id
(optional)
-parent_id
(defaults to "0") (optional)
-replace
(defaults to "0") (optional)
-objects
(optional)
-create_user_ids
(defaults to "0") (optional)

Partial Call Graph (max 5 caller/called nodes):
%3

Testcases:
No testcase defined.
Source code:
if {$parent_id == 0} {set parent_id ${:folder_id}}
if {![info exists user_id]} {set user_id [::xo::cc user_id]}
if {![info exists objects]} {set objects [::xowiki::Page allinstances]}
set msg "#xowiki.processing_objects#: $objects<p>"
set importer [Importer new -package_id ${:id} -parent_id $parent_id -user_id $user_id]
$importer import_all -replace $replace -objects $objects -create_user_ids $create_user_ids
append msg [$importer report]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: