1 | <?php |
||
17 | class Request |
||
18 | { |
||
19 | /** |
||
20 | * @var \Illuminate\Http\Request |
||
21 | */ |
||
22 | protected $request; |
||
23 | |||
24 | /** |
||
25 | * Request constructor. |
||
26 | * |
||
27 | * @param \Illuminate\Http\Request $request |
||
28 | */ |
||
29 | public function __construct(IlluminateRequest $request) |
||
33 | |||
34 | /** |
||
35 | * Proxy non existing method calls to request class. |
||
36 | * |
||
37 | * @param mixed $name |
||
38 | * @param mixed $arguments |
||
39 | * @return mixed |
||
40 | */ |
||
41 | public function __call($name, $arguments) |
||
49 | |||
50 | /** |
||
51 | * Get attributes from request instance. |
||
52 | * |
||
53 | * @param string $name |
||
54 | * @return mixed |
||
55 | */ |
||
56 | public function __get($name) |
||
60 | |||
61 | /** |
||
62 | * Get all columns request input. |
||
63 | * |
||
64 | * @return array |
||
65 | */ |
||
66 | public function columns() |
||
70 | |||
71 | /** |
||
72 | * Check if request uses legacy code |
||
73 | * |
||
74 | * @throws Exception |
||
75 | */ |
||
76 | public function checkLegacyCode() |
||
84 | |||
85 | /** |
||
86 | * Check if Datatables is searchable. |
||
87 | * |
||
88 | * @return bool |
||
89 | */ |
||
90 | public function isSearchable() |
||
94 | |||
95 | /** |
||
96 | * Check if Datatables must uses regular expressions |
||
97 | * |
||
98 | * @param integer $index |
||
99 | * @return string |
||
100 | */ |
||
101 | public function isRegex($index) |
||
105 | |||
106 | /** |
||
107 | * Get orderable columns |
||
108 | * |
||
109 | * @return array |
||
110 | */ |
||
111 | public function orderableColumns() |
||
128 | |||
129 | /** |
||
130 | * Check if Datatables ordering is enabled. |
||
131 | * |
||
132 | * @return bool |
||
133 | */ |
||
134 | public function isOrderable() |
||
138 | |||
139 | /** |
||
140 | * Check if a column is orderable. |
||
141 | * |
||
142 | * @param integer $index |
||
143 | * @return bool |
||
144 | */ |
||
145 | public function isColumnOrderable($index) |
||
149 | |||
150 | /** |
||
151 | * Get searchable column indexes |
||
152 | * |
||
153 | * @return array |
||
154 | */ |
||
155 | public function searchableColumnIndex() |
||
166 | |||
167 | /** |
||
168 | * Check if a column is searchable. |
||
169 | * |
||
170 | * @param integer $i |
||
171 | * @param bool $column_search |
||
172 | * @return bool |
||
173 | */ |
||
174 | public function isColumnSearchable($i, $column_search = true) |
||
182 | |||
183 | /** |
||
184 | * Get column's search value. |
||
185 | * |
||
186 | * @param integer $index |
||
187 | * @return string |
||
188 | */ |
||
189 | public function columnKeyword($index) |
||
193 | |||
194 | /** |
||
195 | * Get global search keyword |
||
196 | * |
||
197 | * @return string |
||
198 | */ |
||
199 | public function keyword() |
||
203 | |||
204 | /** |
||
205 | * Get column identity from input or database. |
||
206 | * |
||
207 | * @param integer $i |
||
208 | * @return string |
||
209 | */ |
||
210 | public function columnName($i) |
||
216 | |||
217 | /** |
||
218 | * Check if Datatables allow pagination. |
||
219 | * |
||
220 | * @return bool |
||
221 | */ |
||
222 | public function isPaginationable() |
||
226 | } |
||
227 |