Línea 100... |
Línea 100... |
100 |
//$isJson = true;
|
100 |
//$isJson = true;
|
101 |
if ($isJson) {
|
101 |
if ($isJson) {
|
102 |
$search = $this->params()->fromQuery('search');
|
102 |
$search = $this->params()->fromQuery('search');
|
103 |
$search = empty($search) ? '' : filter_var($search, FILTER_SANITIZE_STRING);
|
103 |
$search = empty($search) ? '' : filter_var($search, FILTER_SANITIZE_STRING);
|
Línea 104... |
Línea 104... |
104 |
|
104 |
|
105 |
$page = intval($this->params()->fromQuery('start', 1), 10);
|
105 |
$start = intval($this->params()->fromQuery('start', 0), 10);
|
- |
|
106 |
$records_x_page = intval($this->params()->fromQuery('length', 10), 10);
|
- |
|
107 |
$page = intval($start / $records_x_page);
|
- |
|
108 |
$page++;
|
106 |
$records_x_page = intval($this->params()->fromQuery('length', 10), 10);
|
109 |
|
107 |
$order = $this->params()->fromQuery('order', []);
|
110 |
$order = $this->params()->fromQuery('order', []);
|
108 |
$order_field = empty($order[0]['column']) ? 99 : intval($order[0]['column'], 10);
|
111 |
$order_field = empty($order[0]['column']) ? 99 : intval($order[0]['column'], 10);
|
Línea 109... |
Línea 112... |
109 |
$order_direction = empty($order[0]['dir']) ? 'ASC' : strtoupper(filter_var($order[0]['dir'], FILTER_SANITIZE_STRING));
|
112 |
$order_direction = empty($order[0]['dir']) ? 'ASC' : strtoupper(filter_var($order[0]['dir'], FILTER_SANITIZE_STRING));
|