abstract class FeedImportMergeField in Feed Import 7.3
Abstract class that helps merging fields on update.
Hierarchy
- class \FeedImportMergeField
Expanded class hierarchy of FeedImportMergeField
1 string reference to 'FeedImportMergeField'
- FeedImportProcessor::setFields in feed_import_base/
inc/ feed_import.inc - Sets entity fields.
File
- feed_import_base/
inc/ feed_import_abstract.inc, line 503 - This file contains abstract classes and interfaces for feed import.
View source
abstract class FeedImportMergeField {
/**
* Remove field if is missing from source.
*
* @return bool
* True to overwrite
*/
public function overwriteEmpty() {
return FALSE;
}
/**
* Merge the new and current field values.
* The merge should be set in $current ref. variable
*
* @param array $current
* Current field values
* @param array $new
* New field values
* @param array $field
* Field info
* cardinality - field cardinality
* compare - compare function for field value
*
* @return bool
* True if $current was changed
*/
public abstract function merge(array &$current, array &$new, array &$field);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FeedImportMergeField:: |
abstract public | function | Merge the new and current field values. The merge should be set in $current ref. variable | 4 |
FeedImportMergeField:: |
public | function | Remove field if is missing from source. | 1 |