You are here

public function FeedsParserResult::shiftItem in Feeds 7.2

@todo Move to a nextItem() based approach, not consuming the item array. Can only be done once we don't cache the entire batch object between page loads for batching anymore.

Return value

Next available item or NULL if there is none. Every returned item is removed from the internal array.

File

plugins/FeedsParser.inc, line 37
Contains FeedsParser and related classes.

Class

FeedsParserResult
A result of a parsing stage.

Code

public function shiftItem() {
  $this->current_item = array_shift($this->items);
  return $this->current_item;
}