Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15549 | Rev 15551 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 15549 Rev 15550
Línea 133... Línea 133...
133
                }
133
                }
134
            }
134
            }
Línea 135... Línea 135...
135
 
135
 
136
 
-
 
137
            if ($isJson) {
-
 
138
                //Anderson code
-
 
139
                $search = $this->params()->fromQuery('search', []);
-
 
140
                $search = empty($search['value']) ? '' : filter_var($search['value'], FILTER_SANITIZE_STRING);
-
 
141
                $blockUsers               = intval($this->params()->fromQuery('start', 1), 10);
-
 
142
                $records_x_page     = intval($this->params()->fromQuery('length', 10), 10);
-
 
143
                $order =  $this->params()->fromQuery('order', []);
-
 
144
                $order_field        = empty($order[0]['column']) ? 99 :  intval($order[0]['column'], 10);
-
 
145
                $order_direction    = empty($order[0]['dir']) ? 'ASC' : strtoupper(filter_var($order[0]['dir'], FILTER_SANITIZE_STRING));
-
 
146
 
-
 
147
                $fields =  ['title'];
-
 
148
                $order_field = isset($fields[$order_field]) ? $fields[$order_field] : 'title';
-
 
149
 
-
 
150
                if (!in_array($order_direction, ['ASC', 'DESC'])) {
-
 
151
                    $order_direction = 'ASC';
-
 
152
                }
-
 
153
 
-
 
154
 
-
 
155
 
-
 
156
 
-
 
157
 
-
 
158
 
-
 
159
 
-
 
160
 
-
 
161
 
-
 
162
 
-
 
163
 
-
 
164
 
-
 
165
 
-
 
166
 
-
 
167
 
-
 
168
 
136
 
169
 
137
            if ($isJson) {
Línea 170... Línea 138...
170
                $acl = $this->getEvent()->getViewModel()->getVariable('acl');
138
                $acl = $this->getEvent()->getViewModel()->getVariable('acl');
171
                $allowDownload = $acl->isAllowed($currentUser->usertype_id, 'reports/users-blocked/excel');
-
 
Línea 172... Línea 139...
172
 
139
                $allowDownload = $acl->isAllowed($currentUser->usertype_id, 'reports/users-blocked/excel');
Línea 173... Línea 140...
173
 
140