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