function FeedsXPathParserQueryParser::__construct in Feeds XPath Parser 7
Same name and namespace in other branches
- 6 FeedsXPathParserQueryParser.inc \FeedsXPathParserQueryParser::__construct()
File
- ./
FeedsXPathParserQueryParser.inc, line 17 - Pseudo-parser of XPath queries. When an XML document has a default namespace this gets called so that adding the __default__ namepace where appropriate. Aren't we nice?
Class
- FeedsXPathParserQueryParser
- @file Pseudo-parser of XPath queries. When an XML document has a default namespace this gets called so that adding the __default__ namepace where appropriate. Aren't we nice?
Code
function __construct($query) {
$this->query = preg_replace('/\\s+\\(\\s*/', '(', $query);
$this->word_boundaries = array(
'[',
']',
'=',
'(',
')',
'.',
'<',
'>',
'*',
'!',
'|',
'/',
',',
' ',
':',
);
$this->in_quotes = FALSE;
$this->quote_char = '';
$this->word = '';
$this->output = '';
$this->prev_boundary = '';
$this->axis = '';
$this->skip_next_word = FALSE;
$this
->start();
}