- Модуль: voximplant
- Путь к файлу: ~/bitrix/modules/voximplant/lib/integration/report/handler/lostcalls/lostcalls.php
- Класс: BitrixVoximplantIntegrationReportHandlerLostCallsLostCalls
- Вызов: LostCalls::getMultipleData
public function getMultipleData()
{
$calculatedData = $this->getCalculatedData();
if (!$calculatedData)
{
return [];
}
$result = [];
foreach ($calculatedData as $row)
{
$date = $this->getDateForUrl($row['DATE']);
$result[] = [
'value' => [
'DATE' => $row['DATE'],
'DATE_FORMATTED' => $this->formatDateForGrid($date['date']),
'LOST_CALLS_COUNT' => $row['LOST_CALLS_COUNT'],
'DYNAMICS' => $row['LOST_CALLS_COUNT_COMPARE'],
],
'url' => [
'LOST_CALLS_COUNT' => $this->createUrl(self::TELEPHONY_DETAIL_URI, [
'START_DATE_from' => $date['start'],
'START_DATE_to' => $date['finish']
])
]
];
}
return $result;
}