• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/infrastructure/datainstaller.php
  • Класс: BitrixLocationInfrastructureDataInstaller
  • Вызов: DataInstaller::installAreasAgent
static function installAreasAgent(): string
{
	$agent = '\Bitrix\Location\Infrastructure\DataInstaller::installAreasAgent();';

	$connection = Application::getInstance()->getConnection();

	if (!$connection->isTableExists(AreaTable::getTableName()))
	{
		return $agent;
	}

	$result = self::installAreas();
	if (!$result->isSuccess())
	{
		return $agent;
	}

	return '';
}