You are here

public function XPathQueryParser::__construct in Feeds XPath Parser 8

Constructs a XPathQueryParser object.

Parameters

string $query: The input XPath query string.

File

lib/Drupal/feeds_xpathparser/XPathQueryParser.php, line 65
Contains \Drupal\feeds_xpathparser\XPathQueryParser.

Class

XPathQueryParser
Pseudo-parser of XPath queries.

Namespace

Drupal\feeds_xpathparser

Code

public function __construct($query) {

  // Normalize space.
  $this->query = preg_replace('/\\s+\\(\\s*/', '(', $query);
}