class GambitManager

Properties

protected array $gambits
protected GambitInterface $fulltextGambit

Methods

add(GambitInterface $gambit)

Add a gambit.

getFullTextGambit() deprecated

No description

getGambits() deprecated

No description

apply(SearchState $search, string $query)

Apply gambits to a search, given a search query.

setFulltextGambit(GambitInterface $gambit)

Set the gambit to handle fulltext searching.

array
explode(string $query)

Explode a search query into an array of bits.

string
applyGambits(SearchState $search, string $query)

No description

applyFulltext(SearchState $search, string $query)

No description

Details

add(GambitInterface $gambit)

Add a gambit.

Parameters

GambitInterface $gambit

getFullTextGambit() deprecated

deprecated Do not use. Added temporarily to provide support for ConfigureUserGambits and ConfigureDiscussionGambits until they are removed in beta 17.

getGambits() deprecated

deprecated Do not use. Added temporarily to provide support for ConfigureUserGambits and ConfigureDiscussionGambits until they are removed in beta 17.

apply(SearchState $search, string $query)

Apply gambits to a search, given a search query.

Parameters

SearchState $search
string $query

setFulltextGambit(GambitInterface $gambit)

Set the gambit to handle fulltext searching.

Parameters

GambitInterface $gambit

protected array explode(string $query)

Explode a search query into an array of bits.

Parameters

string $query

Return Value

array

protected string applyGambits(SearchState $search, string $query)

Parameters

SearchState $search
string $query

Return Value

string

protected applyFulltext(SearchState $search, string $query)

Parameters

SearchState $search
string $query