I just searched in the whole SS-Code wo get some more information about the iterator and how it should be used, but I just don't get it. If someone used it in his code, a Example Loop would be really nice. Thanks in advance
FlorianH
EDIT:
I tried something like this:
while($someDataObjectSet->getIterator()->next())
{
// ...do Stuff
$someDataObjectSet = $someDataObjectSet->getIterator()->next();
}
But that won't work obviously since the "next()" function returns a DataObject instead of a DataObjectSet. Thats why I got trouble with the whole iterating thing ;)
EDIT2:
Actually that was a bad example since it's the same like "foreach($someDataObjectSet as $someDataObject)", so I try to be more specifically. I need the iterate method to check if there is another DataObject right behind the current DataObject in the foreach loop. Any ideas?