1 | <?php |
||
18 | class PaginationResult extends BasePaginationResult implements \JsonSerializable, Arrayable, Jsonable |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * The view factory resolver callback. |
||
23 | * |
||
24 | * @var \Closure |
||
25 | */ |
||
26 | protected static $viewFactoryResolver; |
||
27 | |||
28 | use Macroable { |
||
29 | __call as macroCall; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Make dynamic calls into the collection. |
||
34 | * |
||
35 | * @param string $method |
||
36 | * @param array $parameters |
||
37 | * @return mixed |
||
38 | */ |
||
39 | public function __call($method, array $parameters) |
||
47 | |||
48 | /** |
||
49 | * Set URL for the previous page. |
||
50 | * |
||
51 | * @return string|null |
||
52 | */ |
||
53 | public function makePreviousUrl($state) |
||
57 | |||
58 | /** |
||
59 | * Set URL for the next page. |
||
60 | * |
||
61 | * @return string|null |
||
62 | */ |
||
63 | public function makeNextUrl($state) |
||
67 | |||
68 | |||
69 | /** |
||
70 | * Set URL for the next page. |
||
71 | * |
||
72 | * @return string|null |
||
73 | */ |
||
74 | public function setTabID($tab) |
||
78 | |||
79 | /** |
||
80 | * Add a set of query string values to the paginator. |
||
81 | * |
||
82 | * @param array|string|null $key |
||
83 | * @param string|null $value |
||
84 | * @return $this |
||
85 | */ |
||
86 | public function appends($key, $value = null) |
||
98 | |||
99 | /** |
||
100 | * Add an array of query string values. |
||
101 | * |
||
102 | * @param array $keys |
||
103 | * @return $this |
||
104 | */ |
||
105 | protected function appendArray(array $keys) |
||
113 | |||
114 | |||
115 | /** |
||
116 | * Add a query string value to the paginator. |
||
117 | * |
||
118 | * @param string $key |
||
119 | * @param string $value |
||
120 | * @return $this |
||
121 | */ |
||
122 | protected function addQuery($key, $value) |
||
131 | |||
132 | /** |
||
133 | * Get the URL. |
||
134 | * |
||
135 | * @return string |
||
136 | */ |
||
137 | public function url($direction, $state) |
||
149 | |||
150 | /** |
||
151 | * Get the instance as an array. |
||
152 | * |
||
153 | * @return array |
||
154 | */ |
||
155 | public function toArray() |
||
163 | |||
164 | /** |
||
165 | * Convert the object into something JSON serializable. |
||
166 | * |
||
167 | * @return mixed |
||
168 | */ |
||
169 | public function jsonSerialize() |
||
173 | |||
174 | /** |
||
175 | * Convert the object to its JSON representation. |
||
176 | * |
||
177 | * @param int $options |
||
178 | * @return string |
||
179 | */ |
||
180 | public function toJson($options = 0) |
||
184 | } |
||
185 |