mirror of
https://github.com/VTECRM/vtenext.git
synced 2026-02-26 16:18:47 +00:00
33 lines
763 B
PHP
33 lines
763 B
PHP
<?php
|
|
/*************************************
|
|
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
************************************/
|
|
|
|
/* crmv@96742 */
|
|
|
|
require_once('modules/Reports/output/OutputArray.php');
|
|
|
|
/**
|
|
*
|
|
*/
|
|
class ReportOutputJson extends ReportOutputArray {
|
|
|
|
public function output($return = false) { // crmv@146653
|
|
$jdata = array();
|
|
$jdata['data'] = array();
|
|
foreach ($this->data as $row) {
|
|
$nrow = array();
|
|
foreach ($row as $v) {
|
|
$nrow[$v['column']] = $v;
|
|
}
|
|
$jdata['data'][] = $nrow;
|
|
}
|
|
$jdata['draw'] = intval($_REQUEST['draw']);
|
|
$jdata['recordsTotal'] = $this->countTotal;
|
|
$jdata['recordsFiltered'] = $this->countFiltered;
|
|
|
|
return $jdata;
|
|
}
|
|
|
|
} |