Author Topic

Betsy Gamrat

Wednesday 22 March 2006 10:26:49 am

Comment21564

I have had good luck with this approach.

                //Where to place the object
 // inital values
 $user_id = 14;
 $GroupID = 13;
 $parentNodeID=2; 

                //Get the user node and node_id
 include_once( 'kernel/classes/datatypes/ezuser/ezuser.php' );
 $user =& eZUser::fetch($user_id);
 $user_id = $user->attribute( 'contentobject_id' );
 $userObject =& eZContentObject::fetch($user_id);
 $user_node =& $userObject->attribute('main_node');

<b>Code adapted from:
// Copyright (C) 1999-2004 Björn. All rights reserved.
/*
run this script from the shell

php -C create.php

*/
</b>