• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/Integration/UI/Grid/Property/PropertyGridProvider.php
  • Класс: BitrixIblockIntegrationUIGridPropertyPropertyGridProvider
  • Вызов: PropertyGridProvider::prepareRow
public function prepareRow(array $rawRow): array
{
	foreach($this->getColumns() as $field)
	{
		$id = $field['id'];
		$type = $field['type'] ?? Type::TEXT;
		switch ($type)
		{
			case Type::TEXT:
				if (isset($rawRow[$id]))
				{
					$rawRow[$id] = HtmlFilter::encode($rawRow[$id]);
				}
				break;
			case Type::INT:
				if (isset($rawRow[$id]))
				{
					$rawRow[$id] = (int)$rawRow[$id];
				}
				break;
		}
	}

	return parent::prepareRow($rawRow);
}