|
|
@ -17,9 +17,11 @@ use yii\base\InvalidParamException; |
|
|
|
* It implements the [[getPagination()]] and [[getSort()]] methods as specified by the [[IDataProvider]] interface. |
|
|
|
* It implements the [[getPagination()]] and [[getSort()]] methods as specified by the [[IDataProvider]] interface. |
|
|
|
* |
|
|
|
* |
|
|
|
* @property integer $count The number of data models in the current page. This property is read-only. |
|
|
|
* @property integer $count The number of data models in the current page. This property is read-only. |
|
|
|
* @property Pagination $pagination The pagination object. If this is false, it means the pagination is |
|
|
|
* @property Pagination|boolean $pagination The pagination object. If this is false, it means the pagination |
|
|
|
* disabled. |
|
|
|
* is disabled. Note that the type of this property differs in getter and setter. See [[getPagination()]] and |
|
|
|
* @property Sort $sort The sorting object. If this is false, it means the sorting is disabled. |
|
|
|
* [[setPagination()]] for details. |
|
|
|
|
|
|
|
* @property Sort|boolean $sort The sorting object. If this is false, it means that sorting is disabled. Note |
|
|
|
|
|
|
|
* that the type of this property differs in getter and setter. See [[getSort()]] and [[setSort()]] for details. |
|
|
|
* |
|
|
|
* |
|
|
|
* @author Qiang Xue <qiang.xue@gmail.com> |
|
|
|
* @author Qiang Xue <qiang.xue@gmail.com> |
|
|
|
* @since 2.0 |
|
|
|
* @since 2.0 |
|
|
@ -37,7 +39,7 @@ abstract class DataProvider extends Component implements IDataProvider |
|
|
|
private $_pagination; |
|
|
|
private $_pagination; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @return Pagination the pagination object. If this is false, it means the pagination is disabled. |
|
|
|
* @return Pagination|boolean the pagination object. If this is false, it means the pagination is disabled. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function getPagination() |
|
|
|
public function getPagination() |
|
|
|
{ |
|
|
|
{ |
|
|
@ -80,7 +82,7 @@ abstract class DataProvider extends Component implements IDataProvider |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @return Sort the sorting object. If this is false, it means the sorting is disabled. |
|
|
|
* @return Sort|boolean the sorting object. If this is false, it means the sorting is disabled. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function getSort() |
|
|
|
public function getSort() |
|
|
|
{ |
|
|
|
{ |
|
|
|