• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/entity/address/converter/stringtemplateconverter.php
  • Класс: BitrixLocationEntityAddressConverterStringTemplateConverter
  • Вызов: StringTemplateConverter::getErrorCodes
private function getErrorCodes(): array
{
	static $errorMap = null;

	if ($errorMap !== null)
	{
		return $errorMap;
	}

	$errorMap = [];
	$refClass = new ReflectionClass(__CLASS__);
	foreach ($refClass->getConstants() as $name => $value)
	{
		if (substr($name, 0, 4) === 'ERR_')
		{
			$errorMap[constant("self::{$name}")] = $name;
		}
	}

	return $errorMap;
}