EIDataMapper This class handles data mapping from an Eagle-I node to an Eagle-I ExchangeInstance object as per the field mappings in the content_type_mapping.xml file.
This class implements the Singleton design pattern.
isMappable($node) : bool
boolmapNode($node) : \EIExchangeInstance | null
__construct()
findReverseReference($nid, $content_type, $field) : array
| access | private |
|---|
array- the nids of all nodes that reference the given nid in
the given field of the given content type.getContentType($node) : bool | string
| access | private |
|---|
boolstring
getMap($content_type) : null | string
| access | private |
|---|
nullstring
getNodeFieldValue($node, $property) : null
| access | private |
|---|
nullgetUri($node) : null | string
| access | private |
|---|
nullstring
loadMapData()
loadNodesOfContentType($content_type) : array
Returns all mappable nodes of a given content type. NOTE: This will only pull nids that are explicitly being exported to Eagle-I.
| access | private |
|---|
arraymapNodeRecursive($node, $map, $level) : \EIExchangeInstance | null
$instance : null
$content_types
$map_data
$xml_file