• Модуль: socialservices
  • Путь к файлу: ~/bitrix/modules/socialservices/classes/general/authmanager.php
  • Класс: CSocServAuthManager
  • Вызов: CSocServAuthManager::GetSettingByServiceId
public function GetSettingByServiceId(string $serviceId): ?array
{
	$settings = [];
	if (!isset(self::$arAuthServices[$serviceId]))
	{
		return null;
	}

	$service = self::$arAuthServices[$serviceId];
	$serviceInstance = new $service["CLASS"]();
	if (is_callable([$serviceInstance, "GetSettings"]))
	{
		$options = call_user_func_array([$serviceInstance, "GetSettings"], []);
		if (is_array($options))
		{
			foreach ($options as $opt)
			{
				$settings[] = $opt;
			}
		}
	}

	return $settings;
}