You are here

protected function FeedsProcessor::getCachedTargets in Feeds 7.2

Returns a statically cached version of the target mappings.

Return value

array The targets for this importer.

5 calls to FeedsProcessor::getCachedTargets()
FeedsProcessor::existingEntityId in plugins/FeedsProcessor.inc
Retrieve the target entity's existing id if available. Otherwise return 0.
FeedsProcessor::getMappings in plugins/FeedsProcessor.inc
Get mappings.
FeedsProcessor::map in plugins/FeedsProcessor.inc
Execute mapping on an item.
FeedsProcessor::mapToTarget in plugins/FeedsProcessor.inc
Maps values onto the target item.
FeedsProcessor::validateFields in plugins/FeedsProcessor.inc
Validates fields of an entity.

File

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

Class

FeedsProcessor
Abstract class, defines interface for processors.

Code

protected function getCachedTargets() {
  $targets =& drupal_static('FeedsProcessor::getCachedTargets', array());
  if (!isset($targets[$this->id])) {
    $targets[$this->id] = $this
      ->getMappingTargets();
  }
  return $targets[$this->id];
}