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
$query
(string (opens new window))$defaultTermOptions
(array (opens new window))
# getQuery()
Returns the given query.
View source (opens new window)
Returns
# getTokens()
Returns the tokens.
View source (opens new window)
Returns
(\craft\search\SearchQueryTerm|\craft\search\SearchQueryTermGroup)[]