1 | <?php |
||
18 | class Request |
||
19 | { |
||
20 | /** |
||
21 | * @var \Illuminate\Http\Request |
||
22 | */ |
||
23 | protected $request; |
||
24 | |||
25 | /** |
||
26 | * Request constructor. |
||
27 | * |
||
28 | * @param \Illuminate\Http\Request $request |
||
29 | */ |
||
30 | public function __construct(IlluminateRequest $request) |
||
34 | |||
35 | /** |
||
36 | * Proxy non existing method calls to request class. |
||
37 | * |
||
38 | * @param mixed $name |
||
39 | * @param mixed $arguments |
||
40 | * @return mixed |
||
41 | */ |
||
42 | public function __call($name, $arguments) |
||
50 | |||
51 | /** |
||
52 | * Get attributes from request instance. |
||
53 | * |
||
54 | * @param string $name |
||
55 | * @return mixed |
||
56 | */ |
||
57 | public function __get($name) |
||
61 | |||
62 | /** |
||
63 | * Get all columns request input. |
||
64 | * |
||
65 | * @return array |
||
66 | */ |
||
67 | public function columns() |
||
71 | |||
72 | /** |
||
73 | * Check if Datatables is searchable. |
||
74 | * |
||
75 | * @return bool |
||
76 | */ |
||
77 | public function isSearchable() |
||
81 | |||
82 | /** |
||
83 | * Check if Datatables must uses regular expressions |
||
84 | * |
||
85 | * @param integer $index |
||
86 | * @return bool |
||
87 | */ |
||
88 | public function isRegex($index) |
||
92 | |||
93 | /** |
||
94 | * Get orderable columns |
||
95 | * |
||
96 | * @return array |
||
97 | */ |
||
98 | public function orderableColumns() |
||
115 | |||
116 | /** |
||
117 | * Check if Datatables ordering is enabled. |
||
118 | * |
||
119 | * @return bool |
||
120 | */ |
||
121 | public function isOrderable() |
||
125 | |||
126 | /** |
||
127 | * Check if a column is orderable. |
||
128 | * |
||
129 | * @param integer $index |
||
130 | * @return bool |
||
131 | */ |
||
132 | public function isColumnOrderable($index) |
||
136 | |||
137 | /** |
||
138 | * Get searchable column indexes |
||
139 | * |
||
140 | * @return array |
||
141 | */ |
||
142 | public function searchableColumnIndex() |
||
153 | |||
154 | /** |
||
155 | * Check if a column is searchable. |
||
156 | * |
||
157 | * @param integer $i |
||
158 | * @param bool $column_search |
||
159 | * @return bool |
||
160 | */ |
||
161 | public function isColumnSearchable($i, $column_search = true) |
||
169 | |||
170 | /** |
||
171 | * Get column's search value. |
||
172 | * |
||
173 | * @param integer $index |
||
174 | * @return string |
||
175 | */ |
||
176 | public function columnKeyword($index) |
||
182 | |||
183 | /** |
||
184 | * Prepare keyword string value. |
||
185 | * |
||
186 | * @param string|array $keyword |
||
187 | * @return string |
||
188 | */ |
||
189 | protected function prepareKeyword($keyword) |
||
197 | |||
198 | /** |
||
199 | * Get global search keyword |
||
200 | * |
||
201 | * @return string |
||
202 | */ |
||
203 | public function keyword() |
||
209 | |||
210 | /** |
||
211 | * Get column identity from input or database. |
||
212 | * |
||
213 | * @param integer $i |
||
214 | * @return string |
||
215 | */ |
||
216 | public function columnName($i) |
||
222 | |||
223 | /** |
||
224 | * Check if Datatables allow pagination. |
||
225 | * |
||
226 | * @return bool |
||
227 | */ |
||
228 | public function isPaginationable() |
||
232 | } |
||
233 |