Path

ez components / documentation / api reference / latest / search


eZ Components latest

Search: ezcSearchQueryToken

[ Tutorial ] [ Solr schema ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcSearchQueryToken

The struct contains tokens that make up a search query [source]

Constants

BRACE_CLOSE = 7
BRACE_OPEN = 6
COLON = 10
LOGICAL_AND = 8
LOGICAL_OR = 9
MINUS = 5
PLUS = 4
QUOTE = 3
SPACE = 2
STRING = 1

Member Variables

public string $token
Token contents
public int $type
Token type

Method Summary

public ezcSearchQueryToken __construct( $type, $token )
Contructs a new ezcSearchResult.
public static ezcSearchResult __set_state( $array )
Returns a new instance of this class with the data specified by $array.

Methods

__construct

ezcSearchQueryToken __construct( int $type, string $token )
Contructs a new ezcSearchResult.

Parameters

Name Type Description
$type int  
$token string  

__set_state

ezcSearchResult __set_state( $array )
Returns a new instance of this class with the data specified by $array.
$array contains all the data members of this class in the form: array('member_name'=>value).
__set_state makes this class exportable with var_export. var_export() generates code, that calls this method when it is parsed with PHP.

Parameters

Name Type Description
$array array(string=>mixed)  

Last updated: Mon, 21 Dec 2009