Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/Jaspersoft/Service/ReportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ class ReportService extends JRSService
* @param boolean $freshData
* @param boolean $saveDataSnapshot
* @param string $transformerKey For use when running a report as a JasperPrint. Specifies print element transformers
* @param boolean $ignorePagination Should report be printed continuously, ignoring pages breaks?
* @return string Binary data of report
*/
public function runReport($uri, $format = 'pdf', $pages = null, $attachmentsPrefix = null, $inputControls = null,
$interactive = true, $onePagePerSheet = false, $freshData = true, $saveDataSnapshot = false, $transformerKey = null)
$interactive = true, $onePagePerSheet = false, $freshData = true, $saveDataSnapshot = false,
$transformerKey = null, $ignorePagination = false)
{
$url = $this->service_url . '/reports' . $uri . '.' . $format;
if (empty($inputControls))
$url .= '?' . Util::query_suffix(compact("pages", "attachmentsPrefix", "interactive", "onePagePerSheet", "freshData", "saveDataSnapshot", "transformerKey"));
$url .= '?' . Util::query_suffix(compact("pages", "attachmentsPrefix", "interactive", "onePagePerSheet", "freshData", "saveDataSnapshot", "transformerKey", "ignorePagination"));
else
$url .= '?' . Util::query_suffix(array_merge(compact("pages", "attachmentsPrefix", "interactive", "onePagePerSheet", "freshData", "saveDataSnapshot", "transformerKey"), $inputControls));
$url .= '?' . Util::query_suffix(array_merge(compact("pages", "attachmentsPrefix", "interactive", "onePagePerSheet", "freshData", "saveDataSnapshot", "transformerKey", "ignorePagination"), $inputControls));
$binary = $this->service->prepAndSend($url, array(200), 'GET', null, true);
return $binary;
}
Expand Down Expand Up @@ -185,4 +187,4 @@ public function updateInputControls($uri, array $parameters)
return $result;
}

}
}