protected function MigrateSource::hash in Migrate 7.2
Generate a hash of the source row.
Parameters
$row:
Return value
string
4 calls to MigrateSource::hash()
- MigrateSource::prepareRow in includes/
source.inc - Give the calling migration a shot at manipulating, and possibly rejecting, the source row.
- MigrateSourceList::hash in plugins/
sources/ list.inc - Overrides MigrateSource::hash().
- MigrateSourceMultiItems::hash in plugins/
sources/ multiitems.inc - Overrides MigrateSource::hash().
- MigrateSourceXML::hash in plugins/
sources/ xml.inc - Generate a hash of the source row.
3 methods override MigrateSource::hash()
- MigrateSourceList::hash in plugins/
sources/ list.inc - Overrides MigrateSource::hash().
- MigrateSourceMultiItems::hash in plugins/
sources/ multiitems.inc - Overrides MigrateSource::hash().
- MigrateSourceXML::hash in plugins/
sources/ xml.inc - Generate a hash of the source row.
File
- includes/
source.inc, line 477 - Define base for migration sources.
Class
- MigrateSource
- Abstract base class for source handling.
Code
protected function hash($row) {
migrate_instrument_start('MigrateSource::hash');
$hash = md5(serialize($row));
migrate_instrument_stop('MigrateSource::hash');
return $hash;
}