protected function FeedsXPathParserBase::filterMappings in Feeds XPath Parser 6
Same name and namespace in other branches
- 7 FeedsXPathParserBase.inc \FeedsXPathParserBase::filterMappings()
Filters mappings, returning the ones that belong to us.
1 call to FeedsXPathParserBase::filterMappings()
File
- ./
FeedsXPathParserBase.inc, line 431 - Provides the abstract base class for FeedsXPathParserHTML and FeedsXPathParserXML.
Class
- FeedsXPathParserBase
- Base class for the HTML and XML parsers.
Code
protected function filterMappings($mappings) {
$our_mappings = array();
foreach ($mappings as $mapping) {
if (strpos($mapping['source'], 'xpathparser:') === 0) {
$our_mappings[$mapping['source']] = $mapping['target'];
}
}
return $our_mappings;
}