/** * Function returns report's data * @param <Vtiger_Paging_Model> $pagingModel * @param <String> $filterQuery * @return <Array> */ function getReportData($pagingModel = false, $filterQuery = false) { $reportid = $this->getId(); $report4YouRun = Report4YouRun::getInstance($reportid); // $data = $report4YouRun->GenerateReport($reportid, 'HTML', $filterQuery, true, $pagingModel->getStartIndex(), $pagingModel->getPageLimit()); $data = $report4YouRun->GenerateReport($reportid, 'HTML'); return $data; }
/** * Function returns Leads grouped by Status * @param type $data * @return <Array> */ function getReports4You($reportid, $owner, $dateFilter) { $db = PearDatabase::getInstance(); require_once 'modules/ITS4YouReports/ITS4YouReports.php'; require_once 'modules/ITS4YouReports/GenerateObj.php'; require_once 'include/Zend/Json.php'; error_reporting(0); ini_set("display_errors", 0); $report4YouRun = Report4YouRun::getInstance($reportid); $data = $report4YouRun->GenerateReport($reportid, 'CHARTS'); return $data; }