You are here

public function SimpleXMLFIReader::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/SimpleXMLFIReader.php, line 97

Class

SimpleXMLFIReader
SimpleXML Reader class, good for small-medium XML files.

Namespace

Drupal\feed_import_base

Code

public function get() {

  // Get next item.
  $item = array_shift($this->items);

  // Register namespaces if needed.
  if ($this->nsfunc) {
    $this->nsfunc[0] =& $item;
    array_map($this->nsfunc, $this->nsname, $this->nsuri);
  }
  return $item;
}