| [ Index ] |
PHP Cross Reference of Phabricator |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 229 lines (6 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| setPageSize($page_size) X-Ref |
| No description |
| setOffset($offset) X-Ref |
| No description |
| getOffset() X-Ref |
| No description |
| getPageSize() X-Ref |
| No description |
| setCount($count) X-Ref |
| No description |
| setHasMorePages($has_more) X-Ref |
| No description |
| setURI(PhutilURI $uri, $paging_parameter) X-Ref |
| No description |
| readFromRequest(AphrontRequest $request) X-Ref |
| No description |
| willShowPagingControls() X-Ref |
| No description |
| setSurroundingPages($pages) X-Ref |
| No description |
| computeCount() X-Ref |
| No description |
| isExactCountKnown() X-Ref |
| No description |
| sliceResults(array $results) X-Ref |
| A common paging strategy is to select one extra record and use that to indicate that there's an additional page (this doesn't give you a complete page count but is often faster than counting the total number of items). This method will take a result array, slice it down to the page size if necessary, and call setHasMorePages() if there are more than one page of results. $results = queryfx_all( $conn, 'SELECT ... LIMIT %d, %d', $pager->getOffset(), $pager->getPageSize() + 1); $results = $pager->sliceResults($results); param: list Result array. return: list One page of results. |
| setEnableKeyboardShortcuts($enable) X-Ref |
| No description |
| render() X-Ref |
| No description |
| getDisplayIndex($page_index) X-Ref |
| No description |
| Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |