xowiki::Package instproc reparent (public)

 <instance of xowiki::Package[i]> reparent [ -item_id item_id ] \
    [ -new_parent_id new_parent_id ] \
    [ -allowed_parent_types allowed_parent_types ]

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

Reparent a wiki page from one parent page to another one. The function changes the parent_id in cr_items, updates the cr-child-rels, and clears the caches. The function does not require the item to be instantiated. Limitations: The method does not perform permission checks (whether the actual user has rights to move the page to another parent folder), which should be implemented by the calling methods. Currently, the method does not perform cycle checks. It might be recommended to make sure the target parent is in the same package instance.

Switches:
-item_id
(optional)
item_id of the item to be moved
-new_parent_id
(optional)
item_id of the target parent
-allowed_parent_types
(defaults to "::xowiki::FormPage ::xowiki::Page") (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 xowiki::update_item_index xowiki::update_item_index (public) xowiki::Package instproc reparent xowiki::Package instproc reparent xowiki::Package instproc reparent->xowiki::update_item_index

Testcases:
No testcase defined.
[ show source ]
Show another procedure: