sphinx\ActiveDataProvider setMeta()

setMeta() public method public void setMeta ( $meta )$meta array Search query meta info

sphinx\ActiveDataProvider setFacets()

setFacets() public method public void setFacets ( $facets )$facets array Query facet results.

sphinx\ActiveDataProvider prepareTotalCount()

prepareTotalCount() protected method Returns a value indicating the total number of data models in this data provider. protected integer prepareTotalCount ( )return integer Total number of data models in this data provider.

sphinx\ActiveDataProvider prepareModels()

prepareModels() protected method Prepares the data models that will be made available in the current page. protected array prepareModels ( )return array The available data models

sphinx\ActiveDataProvider getMeta()

getMeta() public method public array getMeta ( )return array Search query meta info

sphinx\ActiveDataProvider getFacets()

getFacets() public method public array getFacets ( )return array Query facet results.

sphinx\ActiveDataProvider getFacet()

getFacet() public method Returns results of the specified facet. public array getFacet ( $name )$name string Facet name return array Facet results. throws yii\base\InvalidCallException if requested facet does not present in results.

sphinx\ActiveDataProvider $meta

$meta public property Search query meta info public array getMeta ( )public void setMeta ( $meta )

sphinx\ActiveDataProvider $facets

$facets public property Query facet results. public array getFacets ( )public void setFacets ( $facets )

Sorting

When displaying multiple rows of data, it is often needed that the data be sorted according to some columns specified by end users. Yii uses a yii\data\Sort object to represent the information about a sorting schema. In particular, attributes specifies the attributes by which the data can be sorted. An attribute can be as simple as a model attribute. It can also be a composite one by combining multiple model attributes or DB columns. More details will be given in the following. attributeOrde