mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
totalizadores implementados
This commit is contained in:
@ -15,7 +15,7 @@ class Collection
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function datatable(array $data, int $recordsTotal, int $recordsFiltered, string $error = null)
|
||||
public static function datatable(array $data, int $recordsTotal, int $recordsFiltered, string $error = null, $extra_data = [])
|
||||
{
|
||||
$draw = 1;
|
||||
$req = service('request');
|
||||
@ -38,6 +38,10 @@ class Collection
|
||||
$response['error'] = $error;
|
||||
}
|
||||
|
||||
if (count($extra_data)>0) {
|
||||
$response['extra'] = $extra_data;
|
||||
}
|
||||
|
||||
return $response;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user