PHP Класс Elastica\Query\Ids

Автор: Lee Parker
Автор: Nicolas Ruflin ([email protected])
Автор: Tim Rupp
Наследование: extends AbstractQuery
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( string | Type $type = null, array $ids = [] ) Creates filter object.
addId ( string $id ) Adds one more filter to the and filter.
addType ( string | Type $type ) Adds one more type to query.
setIds ( array | string $ids ) Sets the ids to filter.
setType ( array | string | Type $type ) Set type.
toArray ( ) : array Converts filter to array.

Описание методов

__construct() публичный Метод

Creates filter object.
public __construct ( string | Type $type = null, array $ids = [] )
$type string | Elastica\Type Type to filter on
$ids array List of ids

addId() публичный Метод

Adds one more filter to the and filter.
public addId ( string $id )
$id string Adds id to filter

addType() публичный Метод

Adds one more type to query.
public addType ( string | Type $type )
$type string | Elastica\Type Type name or object

setIds() публичный Метод

Sets the ids to filter.
public setIds ( array | string $ids )
$ids array | string List of ids

setType() публичный Метод

Set type.
public setType ( array | string | Type $type )
$type array | string | Elastica\Type Type name or object

toArray() публичный Метод

Converts filter to array.
См. также: Elastica\Query\AbstractQuery::toArray()
public toArray ( ) : array
Результат array Query array