protected static function FeedImport::getEntityIdsFromHash in Feed Import 7
Same name and namespace in other branches
- 7.2 feed_import.inc.php \FeedImport::getEntityIdsFromHash()
Gets entity ids from a hashes
Parameters
array &$hashes: Array of hashes
Return value
array Fetched hashes in database
1 call to FeedImport::getEntityIdsFromHash()
- FeedImport::saveEntities in ./
feed_import.inc.php - Saves/updates all created entities
File
- ./
feed_import.inc.php, line 439 - Feed import class for parsing and processing content
Class
- FeedImport
- @file Feed import class for parsing and processing content
Code
protected static function getEntityIdsFromHash(array &$hashes) {
return db_select('feed_import_hashes', 'f')
->fields('f', array(
'hash',
'entity',
'id',
'entity_id',
))
->condition('hash', $hashes, 'IN')
->execute()
->fetchAllAssoc('hash');
}