255 foreach ($columns as $column)
257 $colName = $column[
'id'] ??
null;
258 if (!isset($colName))
263 $type = $column[
'type'] ??
null;
264 if ($type ===
'list')
266 $value = $row[$colName] ??
null;
268 $items = $column[
'editable'][
'items'] ??
null;
269 if (is_array($items))
271 $value = $items[$value] ??
null;
274 $result[$colName] = $value;
276 elseif ($type ===
'image')
280 $fileId = (int)($row[$colName] ??
null);
283 $value = CFile::GetPath($fileId);
286 $result[$colName] = $value;
290 $result[$colName] = $row[$colName] ??
null;