$user = eZUser::fetchByName('Admin'); //*** ez administror
$userID = $user->attribute( 'contentobject_id' );
eZUser::setCurrentlyLoggedInUser( $user, $userID );
// get a variable from the file.
$ini = eZINI::instance( "mysite.ini", getcwd().'/settings/siteaccess/extranet' );
$folderProducteur = $ini->variable( "NodeID", "id_folder_producteur" );
//** on lit les enfants du noeud producteur et on les stocke dans divers tableau***
/*$parent =& eZContentObjectTreeNode::fetch($folderProducteur) ;print_r($parent) ;
$Childrens =& $parent->subTree();*/ //old method (method in web mode)
$Childrens = eZContentObjectTreeNode::subTree(false,$folderProducteur);
foreach ($Childrens as $stat_item)
{
//**** my process
}