PHP Class Flarum\Core\Search\GambitManager

Afficher le fichier Open project: flarum/core Class Usage Examples

Protected Properties

Свойство Type Description
$container Illuminate\Contracts\Container\Container
$fulltextGambit string
$gambits array

Méthodes publiques

Méthode Description
__construct ( Illuminate\Contracts\Container\Container $container )
add ( string $gambit ) Add a gambit.
apply ( AbstractSearch $search, string $query ) Apply gambits to a search, given a search query.
setFulltextGambit ( string $gambit ) Set the gambit to handle fulltext searching.

Méthodes protégées

Méthode Description
applyFulltext ( AbstractSearch $search, string $query )
applyGambits ( AbstractSearch $search, string $query ) : string
explode ( string $query ) : array Explode a search query into an array of bits.

Method Details

__construct() public méthode

public __construct ( Illuminate\Contracts\Container\Container $container )
$container Illuminate\Contracts\Container\Container

add() public méthode

Add a gambit.
public add ( string $gambit )
$gambit string

apply() public méthode

Apply gambits to a search, given a search query.
public apply ( AbstractSearch $search, string $query )
$search AbstractSearch
$query string

applyFulltext() protected méthode

protected applyFulltext ( AbstractSearch $search, string $query )
$search AbstractSearch
$query string

applyGambits() protected méthode

protected applyGambits ( AbstractSearch $search, string $query ) : string
$search AbstractSearch
$query string
Résultat string

explode() protected méthode

Explode a search query into an array of bits.
protected explode ( string $query ) : array
$query string
Résultat array

setFulltextGambit() public méthode

Set the gambit to handle fulltext searching.
public setFulltextGambit ( string $gambit )
$gambit string

Property Details

$container protected_oe property

protected Container,Illuminate\Contracts\Container $container
Résultat Illuminate\Contracts\Container\Container

$fulltextGambit protected_oe property

protected string $fulltextGambit
Résultat string

$gambits protected_oe property

protected array $gambits
Résultat array