foreach($pagedDataSource as $dataItem)
The data are fetched from {@link setDataSource DataSource}. Only the items
within the specified page will be returned and traversed.
Afficher le fichier
Open project: pradosoft/prado
Class Usage Examples
Méthode | Description | |
---|---|---|
count ( ) : integer | Returns the number of items in the current page. | |
getAllowCustomPaging ( ) : boolean | ||
getAllowPaging ( ) : boolean | ||
getCount ( ) : integer | ||
getCurrentPageIndex ( ) : integer | ||
getDataSource ( ) : mixed | ||
getDataSourceCount ( ) : integer | ||
getFirstIndexInPage ( ) : integer | ||
getIsFirstPage ( ) : boolean | ||
getIsLastPage ( ) : boolean | ||
getIterator ( ) : Iterator | ||
getPageCount ( ) : integer | ||
getPageSize ( ) : integer | ||
getVirtualItemCount ( ) : integer | ||
setAllowCustomPaging ( $value ) | ||
setAllowPaging ( $value ) | ||
setCurrentPageIndex ( $value ) | ||
setDataSource ( $value ) | ||
setPageSize ( $value ) | ||
setVirtualItemCount ( $value ) |
public getAllowCustomPaging ( ) : boolean | ||
Résultat | boolean | whether to allow custom paging. Defaults to false. |
public getAllowPaging ( ) : boolean | ||
Résultat | boolean | whether to allow paging. Defaults to false. |
public getCurrentPageIndex ( ) : integer | ||
Résultat | integer | current page index. Defaults to 0. |
public getDataSource ( ) : mixed | ||
Résultat | mixed | original data source. Defaults to null. |
public getDataSourceCount ( ) : integer | ||
Résultat | integer | number of items in data source, if available |
public getFirstIndexInPage ( ) : integer | ||
Résultat | integer | the index of the item in data source, where the item is the first in current page |
public getIsFirstPage ( ) : boolean | ||
Résultat | boolean | whether the current page is the first page Defaults to false. |
public getIsLastPage ( ) : boolean | ||
Résultat | boolean | whether the current page is the last page |
public getPageSize ( ) : integer | ||
Résultat | integer | number of items in each page. Defaults to 10. |
public getVirtualItemCount ( ) : integer | ||
Résultat | integer | user-assigned number of items in data source Defaults to 0. |