PHP Trait Wallmander\ElasticsearchIndexer\Model\Query\BuilderTrait

Author: Mikael Mattsson ([email protected])
Afficher le fichier Open project: wallmanderco/elasticsearch-indexer

Méthodes publiques

Свойство Type Description
$isSingle boolean

Protected Properties

Свойство Type Description
$args array
$filterBuildingPoint null | object

Méthodes publiques

Méthode Description
addSort ( $field, $order = 'asc' )
bool ( $callable, $relation = 'must' )
getArgs ( )
must ( $input )
setFrom ( $from )
setMinScore ( $score )
setQuery ( $query )
setSize ( $size )
setSort ( $field, $order = 'asc' )
should ( $input )
where ( string | array $arg1, string | array | null $arg2 = null, string | array | null $arg3 = null, boolean $not = false ) examples: where(['age' => 20, 'name' => 'John']) where('age', 20) where('age', [20, 21]) //warning: handled as ”in” where('age', 'in', [20, 21]) // 20 or 21 where('age', '=', [20, 21]) // exact match where('age', '==', [20, 21]) // same as above where('age', '!=', 20) where('age', 'exists', true) //warning: arg3 is needed or else it will check if age = 'exists'.
whereNot ( $arg1, $arg2 = null, $arg3 = null )

Méthodes protégées

Méthode Description
builderConstruct ( )

Method Details

addSort() public méthode

public addSort ( $field, $order = 'asc' )

bool() public méthode

public bool ( $callable, $relation = 'must' )

builderConstruct() protected méthode

protected builderConstruct ( )

getArgs() public méthode

public getArgs ( )

must() public méthode

public must ( $input )

setFrom() public méthode

public setFrom ( $from )

setMinScore() public méthode

public setMinScore ( $score )

setQuery() public méthode

public setQuery ( $query )

setSize() public méthode

public setSize ( $size )

setSort() public méthode

public setSort ( $field, $order = 'asc' )

should() public méthode

public should ( $input )

where() public méthode

examples: where(['age' => 20, 'name' => 'John']) where('age', 20) where('age', [20, 21]) //warning: handled as ”in” where('age', 'in', [20, 21]) // 20 or 21 where('age', '=', [20, 21]) // exact match where('age', '==', [20, 21]) // same as above where('age', '!=', 20) where('age', 'exists', true) //warning: arg3 is needed or else it will check if age = 'exists'.
public where ( string | array $arg1, string | array | null $arg2 = null, string | array | null $arg3 = null, boolean $not = false )
$arg1 string | array
$arg2 string | array | null
$arg3 string | array | null
$not boolean

whereNot() public méthode

public whereNot ( $arg1, $arg2 = null, $arg3 = null )

Property Details

$args protected_oe property

protected array $args
Résultat array

$filterBuildingPoint protected_oe property

protected null|object $filterBuildingPoint
Résultat null | object

$isSingle public_oe property

public bool $isSingle
Résultat boolean