class MigrateXMLFieldMapping in Migrate 7.2
Same name and namespace in other branches
- 6.2 plugins/sources/xml.inc \MigrateXMLFieldMapping
Adds xpath info to field mappings for XML sources
Hierarchy
- class \MigrateFieldMapping
- class \MigrateXMLFieldMapping
Expanded class hierarchy of MigrateXMLFieldMapping
1 string reference to 'MigrateXMLFieldMapping'
- migrate_ui_edit_mappings in migrate_ui/
migrate_ui.pages.inc - Page callback to edit field mappings for a given migration.
File
- plugins/
sources/ xml.inc, line 287 - Support for migration from XML sources.
View source
class MigrateXMLFieldMapping extends MigrateFieldMapping {
/**
* The xpath used to retrieve the data for this field from the XML.
*
* @var string
*/
protected $xpath;
/**
* Get xpath of current item.
*/
public function getXpath() {
return $this->xpath;
}
/**
* Add an xpath to this field mapping.
*
* @param string $xpath
* xpath
*
* @return MigrateFieldMapping
* MigrateFieldMapping
*/
public function xpath($xpath) {
$this->xpath = $xpath;
return $this;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MigrateFieldMapping:: |
protected | property | Argument overrides. If present this will be an array, keyed by a field API array key, with one or both of these entries: 'source_field' - Name of the source field in the incoming row containing the value to be… | |
MigrateFieldMapping:: |
protected | property | Array of callbacks to be called on a source value. | |
MigrateFieldMapping:: |
protected | property | An associative array with keys: | |
MigrateFieldMapping:: |
protected | property | Default value for simple mappings, when there is no source mapping or the source field is empty. If both this and the sourceField are omitted, the mapping is just a stub for annotating the destination field. | |
MigrateFieldMapping:: |
protected | property | ||
MigrateFieldMapping:: |
protected | property | Destination field name for the mapping. If empty, the mapping is just a stub for annotating the source field. | |
MigrateFieldMapping:: |
protected | property | ||
MigrateFieldMapping:: |
protected | property | ||
MigrateFieldMapping:: |
protected | property | ||
MigrateFieldMapping:: |
protected | property | ||
MigrateFieldMapping:: |
public static | property | ||
MigrateFieldMapping:: |
protected | property | Separator string. If present, the destination field will be set up as an array of values exploded from the corresponding source field. | |
MigrateFieldMapping:: |
protected | property | Source field name for the mapping. If empty, the defaultValue will be applied. | |
MigrateFieldMapping:: |
protected | property | Class name of source migration for a field. If present, the value in the source field is considered to be a source ID in the mapping table of this migration, and the corresponding destination ID will be retrieved. | |
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
constant | |||
MigrateFieldMapping:: |
constant | |||
MigrateFieldMapping:: |
constant | |||
MigrateFieldMapping:: |
constant | |||
MigrateFieldMapping:: |
constant | |||
MigrateFieldMapping:: |
constant | |||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateFieldMapping:: |
public | function | ||
MigrateXMLFieldMapping:: |
protected | property | The xpath used to retrieve the data for this field from the XML. | |
MigrateXMLFieldMapping:: |
public | function | Get xpath of current item. | |
MigrateXMLFieldMapping:: |
public | function | Add an xpath to this field mapping. |