- Модуль: report
- Путь к файлу: ~/bitrix/modules/report/classes/general/report_helper.php
- Класс: CReportHelper
- Вызов: CReportHelper::formatResults
static function formatResults(&$rows, &$columnInfo, $total)
{
foreach ($rows as &$row)
{
foreach ($row as $k => &$v)
{
if (!array_key_exists($k, $columnInfo))
{
continue;
}
$cInfo = $columnInfo[$k];
if (is_array($v))
{
foreach ($v as &$subv)
{
// replace by static:: when php 5.3 available
self::formatResultValue($k, $subv, $row, $cInfo, $total);
}
}
else
{
// replace by static:: when php 5.3 available
self::formatResultValue($k, $v, $row, $cInfo, $total);
}
}
}
unset($row, $v, $subv);
}