You are here

public function DomXMLFIReader::get in Feed Import 8

This method returns the next available item or NULL if there are no items left.

Return value

mixed The read item

Overrides FeedImportReader::get

File

feed_import_base/src/DomXMLFIReader.php, line 145

Class

DomXMLFIReader
DomDocument XML reader

Namespace

Drupal\feed_import_base

Code

public function get() {
  if ($this->currentItem < $this->totalItems) {
    return $this->items
      ->item($this->currentItem++);
  }
  unset($this->items);
  return NULL;
}