Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
TT_WORD = '0'
Token types.
Details TT_PHRASE = '1'
Details TT_FIELD = '2'
Details TT_FIELD_INDICATOR = '3'
Details TT_REQUIRED = '4'
Details TT_PROHIBITED = '5'
Details TT_FUZZY_PROX_MARK = '6'
Details TT_BOOSTING_MARK = '7'
Details TT_RANGE_INCL_START = '8'
Details TT_RANGE_INCL_END = '9'
Details TT_RANGE_EXCL_START = '10'
Details TT_RANGE_EXCL_END = '11'
Details TT_SUBQUERY_START = '12'
Details TT_SUBQUERY_END = '13'
Details TT_AND_LEXEME = '14'
Details TT_OR_LEXEME = '15'
Details TT_NOT_LEXEME = '16'
Details TT_TO_LEXEME = '17'
Details TT_NUMBER = '18'
Details TC_WORD = '0'
TokenCategories
Details TC_PHRASE = '1'
Details TC_NUMBER = '2'
Details TC_SYNTAX_ELEMENT = '3'
Detailsinteger $position = ''Token position within query.
Detailsinteger $text = ''Token text.
Detailsinteger $type = ''Token type.
Details__construct(
integer $tokenCategory, $tokenText, integer $position
)
:
IndexReader constructor needs token type and token text as a parameters.
DetailsgetTypes(
)
:
arrayReturns all possible lexeme types.
It's used for syntax analyzer state machine initialization
Details