<?php
 namespace App\Reports\Sources\UsersVisits; class PopulateLoopRecords extends \App\Reports\Sources\PopulateLoopRecordsAbstract { protected array $processStandardColumns = [ 'extraDataList' ]; protected function updateReportStdColumns(array $currentRow) :array { $tableColumns = $this->columnsManager->getStdColumns(); $updateColumns = []; if ($tableColumns['extraDataList'] and $currentRow['extraDataList']){ $thisExtraData = unserialize($currentRow['extraDataList']); if (is_array($thisExtraData)) { $thisExtraDataStr = ''; foreach($thisExtraData as $var=>$value){ $thisExtraDataStr .= htmlClean($var).": ".htmlClean($value)."&#10;"; } if ($thisExtraDataStr) { $updateColumns['extraDataList'] = $thisExtraDataStr; } } } return $updateColumns; } }