class GambitManager

Properties

protected array $gambits
protected GambitInterface $fulltextGambit

Methods

__construct(GambitInterface $fulltextGambit)

No description

add(GambitInterface $gambit)

<p>Add a gambit.</p>

apply(SearchState $search, string $query)

<p>Apply gambits to a search, given a search query.</p>

array
explode(string $query)

<p>Explode a search query into an array of bits.</p>

string
applyGambits(SearchState $search, string $query)

No description

applyFulltext(SearchState $search, string $query)

No description

Details

__construct(GambitInterface $fulltextGambit)

Parameters

GambitInterface $fulltextGambit

add(GambitInterface $gambit)

<p>Add a gambit.</p>

Parameters

GambitInterface $gambit

apply(SearchState $search, string $query)

<p>Apply gambits to a search, given a search query.</p>

Parameters

SearchState $search
string $query

protected array explode(string $query)

<p>Explode a search query into an array of bits.</p>

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