foreach($pagedDataSource as $dataItem)
The data are fetched from {@link setDataSource DataSource}. Only the items
within the specified page will be returned and traversed.
Exibir arquivo
Open project: pradosoft/prado
Class Usage Examples
Method | 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 | ||
return | boolean | whether to allow custom paging. Defaults to false. |
public getAllowPaging ( ) : boolean | ||
return | boolean | whether to allow paging. Defaults to false. |
public getCurrentPageIndex ( ) : integer | ||
return | integer | current page index. Defaults to 0. |
public getDataSource ( ) : mixed | ||
return | mixed | original data source. Defaults to null. |
public getDataSourceCount ( ) : integer | ||
return | integer | number of items in data source, if available |
public getFirstIndexInPage ( ) : integer | ||
return | integer | the index of the item in data source, where the item is the first in current page |
public getIsFirstPage ( ) : boolean | ||
return | boolean | whether the current page is the first page Defaults to false. |
public getIsLastPage ( ) : boolean | ||
return | boolean | whether the current page is the last page |
public getPageSize ( ) : integer | ||
return | integer | number of items in each page. Defaults to 10. |
public getVirtualItemCount ( ) : integer | ||
return | integer | user-assigned number of items in data source Defaults to 0. |