PHP 클래스 yii\elasticsearch\ActiveDataProvider

It allows to fetch not only rows and total rows count, but full query results including aggregations and so on. Note: this data provider fetches result models and total count using single ElasticSearch query, so results total count will be fetched after pagination limit applying, which eliminates ability to verify if requested page number actually exist. Data provider disables [[yii\data\Pagination::validatePage]] automatically because of this.
부터: 2.0.5
저자: Paul Klimov ([email protected])
상속: extends yii\data\ActiveDataProvider
파일 보기 프로젝트 열기: yiisoft/yii2-elasticsearch

공개 메소드들

메소드 설명
getAggregation ( string $name ) : array Returns results of the specified aggregation.
getAggregations ( ) : array
getQueryResults ( ) : array
setQueryResults ( array $results )

보호된 메소드들

메소드 설명
prepareKeys ( $models )
prepareModels ( )
prepareTotalCount ( )

메소드 상세

getAggregation() 공개 메소드

Returns results of the specified aggregation.
public getAggregation ( string $name ) : array
$name string aggregation name.
리턴 array aggregation results.

getAggregations() 공개 메소드

public getAggregations ( ) : array
리턴 array all aggregations results

getQueryResults() 공개 메소드

public getQueryResults ( ) : array
리턴 array full query results

prepareKeys() 보호된 메소드

protected prepareKeys ( $models )

prepareModels() 보호된 메소드

protected prepareModels ( )

prepareTotalCount() 보호된 메소드

protected prepareTotalCount ( )

setQueryResults() 공개 메소드

public setQueryResults ( array $results )
$results array full query results