victor-codigo/doctrine-paginator-adapter
最新稳定版本:v1.0.0
Composer 安装命令:
composer require victor-codigo/doctrine-paginator-adapter
包简介
A doctrine paginator
README 文档
README
Description
PHP classes for doctrine pagination
Requeriments
Usage
Development
Installation
Install with Composer:
composer require victor-codigo/doctrine-paginator-adapter
Classes
DoctrinePaginatorAdapter: Class to create the pagination
PaginatorInterface: Interface for paginator adapter
PaginatorException: Page exceptions
Usage
DoctrinePaginatorAdapter methods:
| Method | Description | Params | Return |
|---|---|---|---|
| __construct | Creates a class instance | 1. Doctrine\ORM\Tools\Pagination\Paginator or null: doctrine paginator | |
| createPaginator | Creates a new instance of DoctrinePaginatorAdapter | 1. Doctrine\ORM\Query or Doctrine\ORM\QueryBuilder: Query to create pagination | DoctrinePaginatorAdapter<TKey, TResult> |
| getPageItems | Gets the number of items by page | int or null | |
| setPagination | Sets the page to return, and the number of items per page | 1. int: Page number. 2. int: Number of items by page |
DoctrinePaginatorAdapter<TKey, TResult> |
| getPagesRange | Get a range of pages | 1. int: First page. 2. int: Last page. 3. int: Number of items per page |
\Generator |
| getAllPages | Gets all pages | int: Number of items per page | \Generator |
| getPageCurrent | Gets current page | int | |
| getPagesTotal | Gets the total number of pages | int | |
| hasNext | Gets if there is another page after the current page | int | |
| hasPrevious | Gets if there is a page before the current page | int | |
| getPageNextNumber | Gets the number of the page after | int or null | |
| getPagePreviousNumber | Gets the number of the page before | int or null | |
| getItemsTotal and count |
Gets the total number of items | int | |
| getIterator | Gets an iterator of the current page | \Tarversable |
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2025-01-14