SearchQuery

Type
Class
Namespace
craft\search
Inherits
craft\search\SearchQuery
Since
3.0.0

Search Query class.

View source (opens new window)

# Public Methods

Method Description
__construct() Constructor
getQuery() Returns the given query.
getTokens() Returns the tokens.

# __construct()

Constructor

View source (opens new window)

Arguments

# getQuery()

Returns the given query.

View source (opens new window)

Returns

string (opens new window)

# getTokens()

Returns the tokens.

View source (opens new window)

Returns

(\craft\search\SearchQueryTerm|\craft\search\SearchQueryTermGroup)[]