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
bool
mapNode($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 |
---|
bool
string
getMap($content_type) : null | string
access | private |
---|
null
string
getNodeFieldValue($node, $property) : null
access | private |
---|
null
getUri($node) : null | string
access | private |
---|
null
string
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 |
---|
array
mapNodeRecursive($node, $map, $level) : \EIExchangeInstance | null
$instance : null
$content_types
$map_data
$xml_file