Browse Source

Added doc about BaseDataProvider::getPagination().

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
bcc0cbeba8
  1. 3
      framework/yii/data/BaseDataProvider.php

3
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. * @return Pagination|boolean the pagination object. If this is false, it means the pagination is disabled.
*/ */
public function getPagination() public function getPagination()

Loading…
Cancel
Save