| 1 | <?php |
||
| 8 | class PagerfantaAdminAdapter implements AdapterInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var DataProviderInterface |
||
| 12 | */ |
||
| 13 | private $dataProvider; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | private $criteria; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | private $orderBy; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | private $options; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * PagerfantaAdminAdapter constructor. |
||
| 32 | * |
||
| 33 | * @param DataProviderInterface $dataProvider |
||
| 34 | * @param array $criteria |
||
| 35 | * @param array $orderBy |
||
| 36 | * @param array $options |
||
| 37 | */ |
||
| 38 | public function __construct( |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Returns the number of results. |
||
| 52 | * |
||
| 53 | * @return integer The number of results. |
||
| 54 | */ |
||
| 55 | public function getNbResults() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Returns an slice of the results. |
||
| 65 | * |
||
| 66 | * @param integer $offset The offset. |
||
| 67 | * @param integer $length The length. |
||
| 68 | * |
||
| 69 | * @return array|\Traversable The slice. |
||
| 70 | */ |
||
| 71 | public function getSlice($offset, $length) |
||
| 78 | } |
||
| 79 |