You are here

protected function FeedsProcessor::loadItemInfo in Feeds 7.2

Loads existing entity information and places it on $entity->feeds_item.

Parameters

object $entity: The entity object to load item info for. Id key must be present.

Return value

bool TRUE if item info could be loaded, false if not.

2 calls to FeedsProcessor::loadItemInfo()
FeedsNodeProcessor::clean in plugins/FeedsNodeProcessor.inc
Overrides FeedsProcessor::clean().
FeedsUserProcessor::clean in plugins/FeedsUserProcessor.inc
Overrides FeedsProcessor::clean().

File

plugins/FeedsProcessor.inc, line 1364
Contains FeedsProcessor and related classes.

Class

FeedsProcessor
Abstract class, defines interface for processors.

Code

protected function loadItemInfo($entity) {
  $entity_info = entity_get_info($this
    ->entityType());
  $key = $entity_info['entity keys']['id'];
  if ($item_info = feeds_item_info_load($this
    ->entityType(), $entity->{$key})) {
    $entity->feeds_item = $item_info;
    return TRUE;
  }
  return FALSE;
}