process() public method

Apply post-processing logic to a DataTable of a report for an API request.
public process ( Piwik\DataTable\DataTableInterface $dataTable ) : Piwik\DataTable\DataTableInterface
$dataTable Piwik\DataTable\DataTableInterface The data table to process.
return Piwik\DataTable\DataTableInterface A new data table.
Beispiel #1
0
 private function handleDataTable(DataTableInterface $datatable)
 {
     if ($this->postProcessDataTable) {
         $postProcessor = new DataTablePostProcessor($this->apiModule, $this->apiMethod, $this->request);
         $datatable = $postProcessor->process($datatable);
     }
     return $this->apiRenderer->renderDataTable($datatable);
 }