/** * Aggreagte the list by field and method or special sql * * @param Tx_PtExtlist_Domain_Configuration_Data_Aggregates_AggregateConfigCollection $aggregateConfigCollection */ public function getAggregatesByConfigCollection(Tx_PtExtlist_Domain_Configuration_Data_Aggregates_AggregateConfigCollection $aggregateConfigCollection) { $aggregateSQLQuery = $this->buildAggregateSQLByConfigCollection($aggregateConfigCollection); $aggregates = $this->dataSource->executeQuery($aggregateSQLQuery)->fetchAll(); if (TYPO3_DLOG) { \TYPO3\CMS\Core\Utility\GeneralUtility::devLog($this->listIdentifier . '->aggregateQuery', 'pt_extlist', 1, array('executionTime' => $this->dataSource->getLastQueryExecutionTime(), 'query' => $aggregateSQLQuery)); } return $aggregates[0]; }