• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/service/geoip/geoip2.php
  • Класс: BitrixMainServiceGeoIpGeoIP2
  • Вызов: GeoIP2::getConfigForAdmin
public function getConfigForAdmin()
{
	return [
		[
			'NAME' => 'TYPE',
			'TITLE' => Loc::getMessage("geoip_geoip2_type"),
			'TYPE' => 'LIST',
			'VALUE' => ($this->config['TYPE'] ?? 'city'),
			'OPTIONS' => [
				'city' => 'GeoIP2/GeoLite2 City',
				'country' => 'GeoIP2/GeoLite2 Country',
			],
			'REQUIRED' => true,
		],
		[
			'NAME' => 'FILE',
			'TITLE' => Loc::getMessage("geoip_geoip2_file"),
			'TYPE' => 'TEXT',
			'VALUE' => htmlspecialcharsbx($this->config['FILE'] ?? ''),
			'REQUIRED' => true,
		],
	];
}