From bcc0cbeba8648eb8eb41c4c5becc654bb476bc3d Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Wed, 2 Oct 2013 08:29:52 -0400 Subject: [PATCH] Added doc about BaseDataProvider::getPagination(). --- framework/yii/data/BaseDataProvider.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/yii/data/BaseDataProvider.php b/framework/yii/data/BaseDataProvider.php index 15705b7..3b0669d 100644 --- a/framework/yii/data/BaseDataProvider.php +++ b/framework/yii/data/BaseDataProvider.php @@ -157,6 +157,9 @@ abstract class BaseDataProvider extends Component implements DataProviderInterfa } /** + * Returns the pagination object used by this data provider. + * Note that you should call [[prepare()]] or [[getModels()]] first to get correct values + * of [[Pagination::totalCount]] and [[Pagination::pageCount]]. * @return Pagination|boolean the pagination object. If this is false, it means the pagination is disabled. */ public function getPagination()