| 1 | <?php |
||
| 8 | class PagerFantaAdminAdapter implements AdapterInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var DataProviderInterface |
||
| 12 | */ |
||
| 13 | protected $dataProvider; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | protected $criteria; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | protected $orderBy; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * PagerFantaAdminAdapter constructor. |
||
| 27 | * |
||
| 28 | * @param DataProviderInterface $dataProvider |
||
| 29 | * @param array $criteria |
||
| 30 | * @param array $orderBy |
||
| 31 | */ |
||
| 32 | 5 | public function __construct(DataProviderInterface $dataProvider, $criteria = [], $orderBy = []) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Returns the number of results. |
||
| 41 | * |
||
| 42 | * @return integer The number of results. |
||
| 43 | */ |
||
| 44 | public function getNbResults() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Returns an slice of the results. |
||
| 57 | * |
||
| 58 | * @param integer $offset The offset. |
||
| 59 | * @param integer $length The length. |
||
| 60 | * |
||
| 61 | * @return array|\Traversable The slice. |
||
| 62 | */ |
||
| 63 | 5 | public function getSlice($offset, $length) |
|
| 69 | } |
||
| 70 |