PHP 클래스 Elastica\Query\Ids

저자: Lee Parker
저자: Nicolas Ruflin ([email protected])
저자: Tim Rupp
상속: extends AbstractQuery
파일 보기 프로젝트 열기: ruflin/elastica 1 사용 예제들

공개 메소드들

메소드 설명
__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