data\BaseDataProvider getTotalCount()

getTotalCount() public method Returns the total number of data models. When $pagination is false, this returns the same value as $count. Otherwise, it will call prepareTotalCount() to get the count. public integer getTotalCount ( )return integer Total number of possible data models.

data\BaseDataProvider getSort()

getSort() public method Returns the sorting object used by this data provider. public yii\data\Sort|boolean getSort ( )return yii\data\Sort|boolean The sorting object. If this is false, it means the sorting is disabled.

data\BaseDataProvider getPagination()

getPagination() public method Returns the pagination object used by this data provider. Note that you should call prepare() or getModels() first to get correct values of yii\data\Pagination::$totalCount and yii\data\Pagination::$pageCount. public yii\data\Pagination|false getPagination ( )return yii\data\Pagination|false The pagination object. If this is false, it means the pagination is disabled.

data\BaseDataProvider getModels()

getModels() public method Returns the data models in the current page. public array getModels ( )return array The list of data models in the current page.

data\BaseDataProvider getKeys()

getKeys() public method Returns the key values associated with the data models. public array getKeys ( )return array The list of key values corresponding to $models. Each data model in $models is uniquely identified by the corresponding key value in this array.

data\BaseDataProvider getCount()

getCount() public method Returns the number of data models in the current page. public integer getCount ( )return integer The number of data models in the current page.

data\BaseDataProvider $totalCount

$totalCount public property Total number of possible data models. public integer getTotalCount ( )public void setTotalCount ( $value )

data\BaseDataProvider $sort

$sort public property The sorting object. If this is false, it means the sorting is disabled. public yii\data\Sort|boolean getSort ( )public void setSort ( $value )

data\BaseDataProvider $pagination

$pagination public property The pagination object. If this is false, it means the pagination is disabled. public yii\data\Pagination|false getPagination ( )public void setPagination ( $value )

data\BaseDataProvider $models

$models public property The list of data models in the current page. public array getModels ( )public void setModels ( $models )