public function FeedsXPathParserBase::getMappingSources in Feeds XPath Parser 6
Same name and namespace in other branches
- 7 FeedsXPathParserBase.inc \FeedsXPathParserBase::getMappingSources()
 
Override parent::getMappingSources().
Overrides FeedsParser::getMappingSources
File
- ./
FeedsXPathParserBase.inc, line 406  - Provides the abstract base class for FeedsXPathParserHTML and FeedsXPathParserXML.
 
Class
- FeedsXPathParserBase
 - Base class for the HTML and XML parsers.
 
Code
public function getMappingSources() {
  $mappings = $this
    ->getOwnMappings();
  $next = 0;
  if (!empty($mappings)) {
    $keys = array_keys($mappings);
    $last_mapping = end($keys);
    $next = explode(':', $last_mapping);
    $next = $next[1] + 1;
  }
  return array(
    'xpathparser:' . $next => array(
      'name' => t('XPath Expression'),
      'description' => t('Allows you to configure an XPath expression that will populate this field.'),
    ),
  ) + parent::getMappingSources();
}