You are here

public function MerciItemMigrateSource::getNextRow in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

Implementation of MigrateSource::getNextRow().

Return value

object

Overrides MigrateSourceSQL::getNextRow

File

merci_migrate/merci_items.inc, line 89

Class

MerciItemMigrateSource

Code

public function getNextRow() {
  $row = parent::getNextRow();
  if ($row) {
    $node = node_load($row->nid);
    if (is_object($node)) {
      merci_migrate_legacy_node_load($node);
      return $node;
    }
    else {
      return NULL;
    }
  }
  else {
    return NULL;
  }
}