Forums / Developer / Moving Objects via PHP & Cron / Comment40872
Hans Melis
Friday 11 June 2004 1:05:43 pm
Well, since you're trying to update ezcontentobject_tree I'm assuming you have the node ID of each node you want to move. In that case, you can do
$node = eZContentObjectTreeNode::fetch( <node_id> );
You also know the node ID of the destination, so you can do
$node->move( <new_node_id> );
That should be enough to move something.
--Hans
Hans http://blog.hansmelis.be