1 | <?php |
||
16 | class AuraSqlPager implements AuraSqlPagerInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var ViewInterface |
||
20 | */ |
||
21 | private $view; |
||
22 | |||
23 | /** |
||
24 | * @var RouteGeneratorInterface |
||
25 | */ |
||
26 | private $routeGenerator; |
||
27 | |||
28 | /** |
||
29 | * @var array |
||
30 | */ |
||
31 | private $viewOptions; |
||
32 | |||
33 | /** |
||
34 | * @var ExtendedPdoInterface |
||
35 | */ |
||
36 | private $pdo; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | */ |
||
41 | private $sql; |
||
42 | |||
43 | /** |
||
44 | * @var array |
||
45 | */ |
||
46 | private $params; |
||
47 | |||
48 | /** |
||
49 | * @var int |
||
50 | */ |
||
51 | private $paging; |
||
52 | |||
53 | /** |
||
54 | * @param ViewInterface $view |
||
55 | * @param array $viewOptions |
||
56 | * |
||
57 | * @PagerViewOption("viewOptions") |
||
58 | */ |
||
59 | 8 | public function __construct(ViewInterface $view, array $viewOptions) |
|
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | 3 | public function init(ExtendedPdoInterface $pdo, $sql, array $params, $paging, RouteGeneratorInterface $routeGenerator) |
|
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | 1 | public function offsetExists($offset) |
|
84 | |||
85 | /** |
||
86 | * {@inheritdoc} |
||
87 | */ |
||
88 | 5 | public function offsetGet($currentPage) |
|
106 | |||
107 | /** |
||
108 | * {@inheritdoc} |
||
109 | */ |
||
110 | 1 | public function offsetSet($offset, $value) |
|
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | */ |
||
118 | 1 | public function offsetUnset($offset) |
|
122 | } |
||
123 |