class GambitManager

Properties

protected array $gambits
protected string $fulltextGambit
protected Container $container

Methods

__construct(Container $container)

No description

add(string $gambit)

<p>Add a gambit.</p>

apply(AbstractSearch $search, string $query)

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

setFulltextGambit(string $gambit)

<p>Set the gambit to handle fulltext searching.</p>

array
explode(string $query)

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

string
applyGambits(AbstractSearch $search, string $query)

No description

applyFulltext(AbstractSearch $search, string $query)

No description

Details

__construct(Container $container)

Parameters

Container $container

add(string $gambit)

<p>Add a gambit.</p>

Parameters

string $gambit

apply(AbstractSearch $search, string $query)

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

Parameters

AbstractSearch $search
string $query

setFulltextGambit(string $gambit)

<p>Set the gambit to handle fulltext searching.</p>

Parameters

string $gambit

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(AbstractSearch $search, string $query)

Parameters

AbstractSearch $search
string $query

Return Value

string

protected applyFulltext(AbstractSearch $search, string $query)

Parameters

AbstractSearch $search
string $query