A token used in parsing the cirrus fulltext syntax.
More...
|
const | BOOL_AND = 1 |
| explicit boolean AND
|
|
const | BOOL_OR = 2 |
| explicit boolean OR
|
|
const | NOT = 3 |
| explicit negation
|
|
const | PARSED_NODE = 4 |
| Parsed node, due to its "mixed" nature the parser is able is able to spawn complex nodes directly from the query string without using tokens.
|
|
const | WHITESPACE = 5 |
|
A token used in parsing the cirrus fulltext syntax.
◆ __construct()
CirrusSearch\Parser\QueryStringRegex\Token::__construct |
( |
| $query | ) |
|
◆ copyTo()
CirrusSearch\Parser\QueryStringRegex\Token::copyTo |
( |
Token | $lookBehind | ) |
|
Copy state from this token to the token argument.
- Parameters
-
◆ getEnd()
CirrusSearch\Parser\QueryStringRegex\Token::getEnd |
( |
| ) |
|
- Returns
- int end offset (excl)
◆ getImage()
CirrusSearch\Parser\QueryStringRegex\Token::getImage |
( |
| ) |
|
Get the image of the token in the query.
- Returns
- bool|null|string
◆ getNode()
CirrusSearch\Parser\QueryStringRegex\Token::getNode |
( |
| ) |
|
Get the node if the token was initialized from a pre-parsed node.
- Returns
- ParsedNode|null
◆ getStart()
CirrusSearch\Parser\QueryStringRegex\Token::getStart |
( |
| ) |
|
◆ getType()
CirrusSearch\Parser\QueryStringRegex\Token::getType |
( |
| ) |
|
the token type
- Returns
- int
◆ getTypeLabel()
static CirrusSearch\Parser\QueryStringRegex\Token::getTypeLabel |
( |
| $type | ) |
|
|
static |
- Parameters
-
- Returns
- string type labels
◆ getTypeLabels()
static CirrusSearch\Parser\QueryStringRegex\Token::getTypeLabels |
( |
| $types | ) |
|
|
static |
- Parameters
-
- Returns
- string[] type labels
◆ ignorable()
CirrusSearch\Parser\QueryStringRegex\Token::ignorable |
( |
| ) |
|
- Returns
- bool true if this token can be ignored
◆ node()
CirrusSearch\Parser\QueryStringRegex\Token::node |
( |
ParsedNode | $node | ) |
|
Initialize the token from a parsed node.
- Parameters
-
◆ setOffsets()
CirrusSearch\Parser\QueryStringRegex\Token::setOffsets |
( |
| $start, |
|
|
| $end ) |
- Parameters
-
int | $start | offset |
int | $end | offset (exc) |
◆ setType()
CirrusSearch\Parser\QueryStringRegex\Token::setType |
( |
| $type, |
|
|
| $start, |
|
|
| $end ) |
- Parameters
-
int | $type | token type |
int | $start | offset |
int | $end | offset (exc) |
◆ PARSED_NODE
const CirrusSearch\Parser\QueryStringRegex\Token::PARSED_NODE = 4 |
Parsed node, due to its "mixed" nature the parser is able is able to spawn complex nodes directly from the query string without using tokens.
The PARSED_NODE token type represent this type of "complex" token
The documentation for this class was generated from the following file:
- includes/Parser/QueryStringRegex/Token.php