foreach($pagedDataSource as $dataItem)
The data are fetched from {@link setDataSource DataSource}. Only the items
within the specified page will be returned and traversed.
Показать файл
Открыть проект
Примеры использования класса
Метод | Описание | |
---|---|---|
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 | ||
Результат | boolean | whether to allow custom paging. Defaults to false. |
public getAllowPaging ( ) : boolean | ||
Результат | boolean | whether to allow paging. Defaults to false. |
public getCurrentPageIndex ( ) : integer | ||
Результат | integer | current page index. Defaults to 0. |
public getDataSource ( ) : mixed | ||
Результат | mixed | original data source. Defaults to null. |
public getDataSourceCount ( ) : integer | ||
Результат | integer | number of items in data source, if available |
public getFirstIndexInPage ( ) : integer | ||
Результат | integer | the index of the item in data source, where the item is the first in current page |
public getIsFirstPage ( ) : boolean | ||
Результат | boolean | whether the current page is the first page Defaults to false. |
public getIsLastPage ( ) : boolean | ||
Результат | boolean | whether the current page is the last page |
public getPageSize ( ) : integer | ||
Результат | integer | number of items in each page. Defaults to 10. |
public getVirtualItemCount ( ) : integer | ||
Результат | integer | user-assigned number of items in data source Defaults to 0. |